Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 21, 2024
1 parent be9c517 commit af1e19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nextjs/tests-e2e/tests/sidebar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test(
await test.step("Select a lesson", async () => {
await page.getByTestId("sidebar-button").click();
const sidebar = page.getByTestId("sidebar");
expect(sidebar).toBeVisible();
await expect(sidebar).toBeVisible();

Check failure on line 20 in apps/nextjs/tests-e2e/tests/sidebar.test.ts

View workflow job for this annotation

GitHub Actions / test-e2e

[Common persona] › tests/sidebar.test.ts:7:5 › Loading a lesson from the sidebar

1) [Common persona] › tests/sidebar.test.ts:7:5 › Loading a lesson from the sidebar › Select a lesson Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('sidebar') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('sidebar') 18 | await page.getByTestId("sidebar-button").click(); 19 | const sidebar = page.getByTestId("sidebar"); > 20 | await expect(sidebar).toBeVisible(); | ^ 21 | await sidebar.getByText("Software Testing Techniques").click(); 22 | }); 2*** | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/sidebar.test.ts:20:29 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/sidebar.test.ts:17:5

Check failure on line 20 in apps/nextjs/tests-e2e/tests/sidebar.test.ts

View workflow job for this annotation

GitHub Actions / test-e2e

[Common persona] › tests/sidebar.test.ts:7:5 › Loading a lesson from the sidebar

1) [Common persona] › tests/sidebar.test.ts:7:5 › Loading a lesson from the sidebar › Select a lesson Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByTestId('sidebar') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('sidebar') 18 | await page.getByTestId("sidebar-button").click(); 19 | const sidebar = page.getByTestId("sidebar"); > 20 | await expect(sidebar).toBeVisible(); | ^ 21 | await sidebar.getByText("Software Testing Techniques").click(); 22 | }); 2*** | at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/sidebar.test.ts:20:29 at /home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs/tests-e2e/tests/sidebar.test.ts:17:5
await sidebar.getByText("Software Testing Techniques").click();
});

Expand Down

0 comments on commit af1e19e

Please sign in to comment.