Skip to content

Commit

Permalink
Merge pull request #4239 from relative-ci/report-e2e-tests
Browse files Browse the repository at this point in the history
test(cli): E2E - add section navigation case
  • Loading branch information
vio committed Feb 12, 2024
2 parents 2b571dc + 88f3ef9 commit 5cf608a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/cli/test/e2e/report.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,22 @@ test('should load packages panel', async ({ page }) => {
'page',
);
});

test('should navigate to sections', async ({ page }) => {
await page.goto(BASE_PATH);

const overviewLink = page.getByRole('link', { name: 'Overview', exact: true });
await expect(overviewLink).toHaveAttribute('aria-current', 'page');

const assetsLink = page.getByRole('link', { name: 'Assets', exact: true });
await assetsLink.click();
await expect(assetsLink).toHaveAttribute('aria-current', 'page');

const modulesLink = page.getByRole('link', { name: 'Modules', exact: true });
await modulesLink.click();
await expect(modulesLink).toHaveAttribute('aria-current', 'page');

const packagesLink = page.getByRole('link', { name: 'Packages', exact: true });
await packagesLink.click();
await expect(packagesLink).toHaveAttribute('aria-current', 'page');
});

0 comments on commit 5cf608a

Please sign in to comment.