mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
Merge remote-tracking branch 'origin/main' into chore/sync-with-main-5-3
This commit is contained in:
@ -1,16 +1,18 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from '@utils/test/playwright';
|
||||
import { configs, 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');
|
||||
configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
||||
test.describe(title('fab-button: aria attributes'), () => {
|
||||
test('should inherit aria attributes to inner button', async ({ page }) => {
|
||||
await page.setContent(
|
||||
`
|
||||
<ion-fab-button aria-label="Hello World">My Button</ion-fab-button>
|
||||
`,
|
||||
config
|
||||
);
|
||||
|
||||
await page.setContent(`
|
||||
<ion-fab-button aria-label="Hello World">My Button</ion-fab-button>
|
||||
`);
|
||||
|
||||
const nativeButton = page.locator('ion-fab-button button');
|
||||
await expect(nativeButton).toHaveAttribute('aria-label', 'Hello World');
|
||||
const nativeButton = page.locator('ion-fab-button button');
|
||||
await expect(nativeButton).toHaveAttribute('aria-label', 'Hello World');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user