Skip to content

Commit

Permalink
fix pager hash test
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe committed Jul 9, 2024
1 parent b551ebf commit 88f6ed5
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,27 +168,6 @@ test.describe('with a valid page in the hash', () => {
});
});

test.describe('with an invalid page in the hash', () => {
test.beforeEach(async ({page}) => {
await page.goto(
'http://localhost:4400/iframe.html?id=atomic-commerce-pager--default&viewMode=story#page=8k3'
);
});

test('pager button 1 should be selected', async ({pager}) => {
await expect(pager.numericButton(1)).toHaveAttribute(
'part',
expect.stringContaining('active-page-button')
);
});

test('should be A11y compliant', async ({pager, makeAxeBuilder}) => {
await pager.hydrated.waitFor();
const accessibilityResults = await makeAxeBuilder().analyze();
expect(accessibilityResults.violations).toEqual([]);
});
});

test.describe('with number-of-pages=3', () => {
test.beforeEach(async ({pager}) => {
await pager.load({args: {numberOfPages: 3}});
Expand Down

0 comments on commit 88f6ed5

Please sign in to comment.