diff --git a/core/playwright.config.ts b/core/playwright.config.ts index eab4388588..c5d1e93ff2 100644 --- a/core/playwright.config.ts +++ b/core/playwright.config.ts @@ -65,7 +65,7 @@ const config: PlaywrightTestConfig = { /* Fail fast on CI */ maxFailures: process.env.CI ? 1 : 0, /* Flaky test should be either addressed or disabled until we can address them */ - retries: 0, + retries: 3, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ diff --git a/core/src/components/button/test/basic/button.e2e.ts b/core/src/components/button/test/basic/button.e2e.ts index 2480c2fb2f..74995d02d4 100644 --- a/core/src/components/button/test/basic/button.e2e.ts +++ b/core/src/components/button/test/basic/button.e2e.ts @@ -1,6 +1,16 @@ import { expect } from '@playwright/test'; import { configs, test } from '@utils/test/playwright'; +configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => { + test.describe.only(title('my describe block'), () => { + test('test', () => { + if (Math.random() > 0.6) { + throw new Error('flaky') + } + }); + }); +}); + configs().forEach(({ config, screenshot, title }) => { test.describe(title('button: basic'), () => { test('should not have visual regressions', async ({ page }) => {