Skip to content

Commit

Permalink
test(input): allow flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermerodz committed Oct 29, 2024
1 parent 152e9cd commit 363c66c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/test/src/tests/base.delete-word.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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')
Expand Down

0 comments on commit 363c66c

Please sign in to comment.