Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(cli): E2E - add section navigation case #4239

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
});
Loading