From 88f6ed5188e139fe854d383f908f0f9cb9aac4ed Mon Sep 17 00:00:00 2001 From: Olivier Lamothe Date: Tue, 9 Jul 2024 09:17:00 -0400 Subject: [PATCH] fix pager hash test --- .../e2e/atomic-commerce-pager.e2e.ts | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/packages/atomic/src/components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts b/packages/atomic/src/components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts index 4cd64145faf..3cfb9b991e4 100644 --- a/packages/atomic/src/components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts +++ b/packages/atomic/src/components/commerce/atomic-commerce-pager/e2e/atomic-commerce-pager.e2e.ts @@ -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}});