From 291db96539c00235dd084b5a1bc23f3ca923ff7e Mon Sep 17 00:00:00 2001 From: Joe Baker Date: Fri, 8 Nov 2024 14:32:34 +0000 Subject: [PATCH] Revert "chore: update e2e fixtures to sentence case" This reverts commit df8e78f4b3cddfe65f35c5c0a7d28262cd4290c0. --- apps/nextjs/tests-e2e/tests/sharing.test.ts | 4 ++-- apps/nextjs/tests-e2e/tests/sidebar.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/nextjs/tests-e2e/tests/sharing.test.ts b/apps/nextjs/tests-e2e/tests/sharing.test.ts index b15ab5060..6e0bdd046 100644 --- a/apps/nextjs/tests-e2e/tests/sharing.test.ts +++ b/apps/nextjs/tests-e2e/tests/sharing.test.ts @@ -12,7 +12,7 @@ const checkPage = async (page: Page) => { await expect(banner).toContainText("Please check content carefully"); const keyStageSubjectTitle = page.getByTestId("key-stage-subject"); - await expect(keyStageSubjectTitle).toContainText("Key stage 4"); + await expect(keyStageSubjectTitle).toContainText("Key Stage 4"); await expect(keyStageSubjectTitle).toContainText("Computing"); await expect(page.locator("h1")).toContainText("Software Testing Techniques"); @@ -61,7 +61,7 @@ test("sharing a lesson", async ({ page, context, browser }) => { const modal = page.getByTestId("chat-share-dialog"); await expect(modal).toBeVisible(); - await expect(modal).toContainText("Share chat"); + await expect(modal).toContainText("Share Chat"); await modal.getByText("Create shareable link").click(); diff --git a/apps/nextjs/tests-e2e/tests/sidebar.test.ts b/apps/nextjs/tests-e2e/tests/sidebar.test.ts index 0220657ee..41bde008b 100644 --- a/apps/nextjs/tests-e2e/tests/sidebar.test.ts +++ b/apps/nextjs/tests-e2e/tests/sidebar.test.ts @@ -18,13 +18,13 @@ test( await page.getByTestId("sidebar-button").click(); const sidebar = page.getByTestId("sidebar"); expect(sidebar).toBeVisible(); - await sidebar.getByText("Software testing techniques").click(); + await sidebar.getByText("Software Testing Techniques").click(); }); await test.step("Lesson has loaded", async () => { await page.waitForURL(/\/aila\/.+/); await expect(page.locator("h1")).toContainText( - "Software testing techniques", + "Software Testing Techniques", ); }); },