Skip to content

Commit

Permalink
Revert "chore: update e2e fixtures to sentence case"
Browse files Browse the repository at this point in the history
This reverts commit df8e78f.
  • Loading branch information
JBR90 committed Nov 8, 2024
1 parent caf4750 commit 291db96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/nextjs/tests-e2e/tests/sharing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/tests-e2e/tests/sidebar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
});
},
Expand Down

0 comments on commit 291db96

Please sign in to comment.