diff --git a/core/src/components/fab-button/test/a11y/fab-button.e2e.ts b/core/src/components/fab-button/test/a11y/fab-button.e2e.ts new file mode 100644 index 0000000000..3e1ed79514 --- /dev/null +++ b/core/src/components/fab-button/test/a11y/fab-button.e2e.ts @@ -0,0 +1,16 @@ +import { expect } from '@playwright/test'; +import { test } from '@utils/test/playwright'; + +test.describe('fab-button: aria attributes', () => { + test('should inherit aria attributes to inner button', async ({ page, skip }) => { + skip.rtl(); + skip.mode('ios'); + + await page.setContent(` + My Button + `); + + const nativeButton = page.locator('ion-fab-button button'); + await expect(nativeButton).toHaveAttribute('aria-label', 'Hello World'); + }); +}); diff --git a/core/src/components/fab-button/test/fab-button.spec.ts b/core/src/components/fab-button/test/fab-button.spec.ts deleted file mode 100644 index 930fcea9bc..0000000000 --- a/core/src/components/fab-button/test/fab-button.spec.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { newSpecPage } from '@stencil/core/testing'; - -import { FabButton } from '../fab-button'; - -describe('fab-button: aria attributes', () => { - it('should inherit aria attributes to inner ', async () => { - const page = await newSpecPage({ - components: [FabButton], - html: ` - My Button - `, - }); - - const fabButton = page.body.querySelector('ion-fab-button'); - const root = fabButton.shadowRoot; - const nativeButton = root.querySelector('button'); - expect(nativeButton.getAttribute('aria-label')).toEqual('Hello World'); - }); -}); diff --git a/core/src/components/fab-button/test/standalone/e2e.ts b/core/src/components/fab-button/test/standalone/e2e.ts deleted file mode 100644 index 8580c95fc4..0000000000 --- a/core/src/components/fab-button/test/standalone/e2e.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { newE2EPage } from '@stencil/core/testing'; - -test('fab-button: standalone', async () => { - const page = await newE2EPage({ - url: '/src/components/fab-button/test/standalone?ionic:_testing=true', - }); - - const compare = await page.compareScreenshot(); - expect(compare).toMatchScreenshot(); -}); diff --git a/core/src/components/fab-button/test/standalone/index.html b/core/src/components/fab-button/test/standalone/index.html deleted file mode 100644 index 9b3e40f328..0000000000 --- a/core/src/components/fab-button/test/standalone/index.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - Floating Action Button - Standalone - - - - - - - - - - Default - - Default - - Mini - - In List - - - - - - - Colors - - - - - - - - - - - - - - - - - - - - - - - - Custom - - - large - - - - - - - - White - White - - - - - Border - Border - - - - - - - - - - - - - - - - - - - - - -
- Default - - Mini - - In List - - - - -
- - - - - - - - - -