Skip to content

Commit

Permalink
Add images page navigation test
Browse files Browse the repository at this point in the history
  • Loading branch information
jescalada committed Sep 3, 2024
1 parent 8918492 commit db5ad0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/e2e/ImagesExplorer/ImagesExplorer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ test.describe('Images Explorer', () => {
await page.waitForLoadState('networkidle');
});

test('navigates correctly from dashboard', async ({ page }) => {
await page.goto(BASE_URL);
await page.waitForLoadState('networkidle');
await page.click('text=Images');
await page.waitForLoadState('networkidle');
expect(page.url()).toBe(IMAGES_PAGE);
});


test.afterEach(async ({ page }, testInfo) => {
if (testInfo.status !== testInfo.expectedStatus) {
await page.screenshot({ path: `failed-${testInfo.title}.png` });
Expand Down

0 comments on commit db5ad0e

Please sign in to comment.