Merge remote-tracking branch 'origin/main' into chore/sync-with-main-5-3

This commit is contained in:
Sean Perkins
2023-05-03 13:38:03 -04:00
2722 changed files with 42605 additions and 10074 deletions

View File

@ -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');
});
});
});