From 363c66c81b83ef4a43ba29a07ee122dd3ac22f2b Mon Sep 17 00:00:00 2001 From: Guilherme Rodz Date: Tue, 29 Oct 2024 08:39:44 -0300 Subject: [PATCH] test(input): allow flaky --- apps/test/src/tests/base.delete-word.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/test/src/tests/base.delete-word.spec.ts b/apps/test/src/tests/base.delete-word.spec.ts index 90bf0dc..d608828 100644 --- a/apps/test/src/tests/base.delete-word.spec.ts +++ b/apps/test/src/tests/base.delete-word.spec.ts @@ -5,7 +5,7 @@ test.beforeEach(async ({ page }) => { await page.goto('/base') }) -test.describe('Delete words', () => { +test.describe('Backspace', () => { test('should backspace previous word (even if there is not a selected character)', async ({ page }) => { const input = page.getByRole('textbox') @@ -27,7 +27,11 @@ test.describe('Delete words', () => { await expect(input).toHaveValue('12356') }) - test('should forward-delete character when pressing delete', async ({ page }) => { +}) +// Allow flaky +test.describe.configure({ retries: 3 }) +test.describe('Delete', () => { + test('should forward-delete character when pressing delete', async ({ page }) => { const input = page.getByRole('textbox') await input.pressSequentially('123456')