From ecb5590511e6b084ba407aaee5e8f9e3ba38331c Mon Sep 17 00:00:00 2001 From: Preeti Bansal Date: Thu, 29 Feb 2024 20:16:57 +0530 Subject: [PATCH] fix: removed avt test cases as per the PR review suggestions --- .../Accordion/Accordion-test.avt.e2e.js | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/e2e/components/Accordion/Accordion-test.avt.e2e.js b/e2e/components/Accordion/Accordion-test.avt.e2e.js index 1808dc42667a..7a224b0176a7 100644 --- a/e2e/components/Accordion/Accordion-test.avt.e2e.js +++ b/e2e/components/Accordion/Accordion-test.avt.e2e.js @@ -48,19 +48,6 @@ test.describe('@avt Accordion', () => { ); }); - test('@avt-advanced-states controlled', async ({ page }) => { - await visitStory(page, { - component: 'Accordion', - id: 'components-accordion--controlled', - globals: { - theme: 'white', - }, - }); - await expect(page).toHaveNoACViolations( - 'Accordion @avt-advanced-states controlled' - ); - }); - test('@avt-keyboard-nav', async ({ page }) => { await visitStory(page, { component: 'Accordion', @@ -157,36 +144,4 @@ test.describe('@avt Accordion', () => { 'Accordion @avt-advanced-states disabled' ); }); - - test('@avt-keyboard-nav expand/collapseAll', async ({ page }) => { - await visitStory(page, { - component: 'Accordion', - id: 'components-accordion--controlled', - globals: { - theme: 'white', - }, - }); - const expand_all_btn = page.getByRole('button', { - name: 'Click to expand all', - }); - const collapse_all_btn = page.getByRole('button', { - name: 'Click to collapse all', - }); - const accordion_btn1 = page.getByRole('button', { - name: 'Section 1 title', - }); - await expect(expand_all_btn).toBeVisible(); - await expect(collapse_all_btn).toBeVisible(); - await page.keyboard.press('Tab'); - - // Check the focus on Expand button - await expect(expand_all_btn).toBeFocused(); - await page.keyboard.press('Enter'); - await expect(accordion_btn1).toHaveAttribute('aria-expanded', 'true'); - //focus on collapse button - await page.keyboard.press('Tab'); - await expect(collapse_all_btn).toBeFocused(); - await page.keyboard.press('Enter'); - await expect(accordion_btn1).toHaveAttribute('aria-expanded', 'false'); - }); });