test(picker-internal): skip overlay test on webkit (#25267)

This commit is contained in:
Liam DeBeasi
2022-05-10 11:03:33 -04:00
committed by GitHub
parent e3c996dea8
commit 64f18fbd2d

View File

@ -1,10 +1,6 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
const isMobileSafariLinux = (userAgent?: string) => {
return userAgent?.includes('Linux') === true && userAgent?.includes('Mobile Safari') === true;
};
test.describe('picker-internal', () => {
test('inline pickers should not have visual regression', async ({ page }) => {
await page.goto(`/src/components/picker-internal/test/basic`);
@ -18,10 +14,7 @@ test.describe('picker-internal', () => {
test.describe('within overlay:', () => {
// TODO (FW-1397): Remove this test.skip when the issue is fixed.
test.skip(
({ userAgent }) => isMobileSafariLinux(userAgent),
'Mobile Safari on Linux renders the selected option incorrectly'
);
test.skip('Flaky test', 'Mobile Safari and Chrome on Linux renders the selected option incorrectly');
test('popover: should not have visual regression', async ({ page }) => {
await page.goto(`/src/components/picker-internal/test/basic`);