diff --git a/apps/web/playwright/unpublished.e2e.ts b/apps/web/playwright/unpublished.e2e.ts index e5b8de6ac6..fc5862ca7e 100644 --- a/apps/web/playwright/unpublished.e2e.ts +++ b/apps/web/playwright/unpublished.e2e.ts @@ -9,7 +9,7 @@ test.describe.configure({ mode: "parallel" }); const title = (name: string) => `${name} is unpublished`; const description = (entity: string) => `This ${entity} link is currently not available. Please contact the ${entity} owner or ask them to publish it.`; -const avatar = (slug: string) => `/team/${slug}/avatar.png`; +const avatar = (slug: string, entity = "team") => `/${entity}/${slug}/avatar.png`; test.afterAll(async ({ users }) => { await users.deleteAll(); @@ -52,7 +52,7 @@ test.describe("Unpublished", () => { expect(await page.locator('[data-testid="empty-screen"]').count()).toBe(1); expect(await page.locator(`h2:has-text("${title(org.name)}")`).count()).toBe(1); expect(await page.locator(`div:text("${description("organization")}")`).count()).toBe(1); - await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug)); + await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug, "org")); }); test("Organization sub-team", async ({ users, page }) => { @@ -70,7 +70,7 @@ test.describe("Unpublished", () => { expect(await page.locator('[data-testid="empty-screen"]').count()).toBe(1); expect(await page.locator(`h2:has-text("${title(org.name)}")`).count()).toBe(1); expect(await page.locator(`div:text("${description("organization")}")`).count()).toBe(1); - await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug)); + await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug, "org")); }); test("Organization sub-team event-type", async ({ users, page }) => { @@ -90,7 +90,7 @@ test.describe("Unpublished", () => { expect(await page.locator('[data-testid="empty-screen"]').count()).toBe(1); expect(await page.locator(`h2:has-text("${title(org.name)}")`).count()).toBe(1); expect(await page.locator(`div:text("${description("organization")}")`).count()).toBe(1); - await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug)); + await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug, "org")); }); test("Organization user", async ({ users, page }) => { @@ -102,7 +102,7 @@ test.describe("Unpublished", () => { expect(await page.locator('[data-testid="empty-screen"]').count()).toBe(1); expect(await page.locator(`h2:has-text("${title(org.name)}")`).count()).toBe(1); expect(await page.locator(`div:text("${description("organization")}")`).count()).toBe(1); - await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug)); + await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug, "org")); }); test("Organization user event-type", async ({ users, page }) => { @@ -115,6 +115,6 @@ test.describe("Unpublished", () => { expect(await page.locator('[data-testid="empty-screen"]').count()).toBe(1); expect(await page.locator(`h2:has-text("${title(org.name)}")`).count()).toBe(1); expect(await page.locator(`div:text("${description("organization")}")`).count()).toBe(1); - await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug)); + await expect(page.locator(`img`)).toHaveAttribute("src", avatar(requestedSlug, "org")); }); }); diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 4b79d4bc5f..a26edb4056 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -1743,7 +1743,8 @@ "show_on_booking_page": "Show on booking page", "get_started_zapier_templates": "Get started with Zapier templates", "team_is_unpublished": "{{team}} is unpublished", - "team_is_unpublished_description": "This {{entity}} link is currently not available. Please contact the {{entity}} owner or ask them to publish it.", + "org_is_unpublished_description": "This organization link is currently not available. Please contact the organization owner or ask them to publish it.", + "team_is_unpublished_description": "This team link is currently not available. Please contact the team owner or ask them to publish it.", "team_member": "Team member", "a_routing_form": "A Routing Form", "form_description_placeholder": "Form Description", diff --git a/packages/ui/components/unpublished-entity/UnpublishedEntity.tsx b/packages/ui/components/unpublished-entity/UnpublishedEntity.tsx index 054ce6cde2..09789431d6 100644 --- a/packages/ui/components/unpublished-entity/UnpublishedEntity.tsx +++ b/packages/ui/components/unpublished-entity/UnpublishedEntity.tsx @@ -13,13 +13,17 @@ export function UnpublishedEntity(props: UnpublishedEntityProps) { return (