Skip to content

Commit 4865d84

Browse files
test(e2e): add delay to pressSequentially for email autocomplete
Without a delay, keystrokes are dispatched in microseconds and vue-select may batch the input events, causing the @search handler to not fire reliably before the debounce timeout. Adding delay:50 spaces out the keystrokes so each event propagates through the Vue reactivity system before the next one arrives. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 3f4f35c commit 4865d84

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

playwright/e2e/multi-signer-parallel.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ test('request signatures from two signers in parallel', async ({ page }) => {
4444
// Add first signer — only email method is active, so the field appears directly (no tabs)
4545
await page.getByRole('button', { name: 'Add signer' }).click()
4646
await page.getByPlaceholder('Email').click()
47-
await page.getByPlaceholder('Email').pressSequentially('signer01@libresign.coop')
47+
await page.getByPlaceholder('Email').pressSequentially('signer01@libresign.coop', { delay: 50 })
4848
await page.getByRole('option', { name: 'signer01@libresign.coop' }).click()
4949
await page.getByRole('textbox', { name: 'Signer name' }).fill('Signer 01')
5050
await page.getByRole('button', { name: 'Save' }).click()
5151

5252
// Add second signer
5353
await page.getByRole('button', { name: 'Add signer' }).click()
5454
await page.getByPlaceholder('Email').click()
55-
await page.getByPlaceholder('Email').pressSequentially('signer02@libresign.coop')
55+
await page.getByPlaceholder('Email').pressSequentially('signer02@libresign.coop', { delay: 50 })
5656
await page.getByRole('option', { name: 'signer02@libresign.coop' }).click()
5757
await page.getByRole('textbox', { name: 'Signer name' }).fill('Signer 02')
5858
await page.getByRole('button', { name: 'Save' }).click()

playwright/e2e/multi-signer-sequential.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ test('request signatures from two signers in sequential order', async ({ page })
4444
// Add first signer — only email method is active, so the field appears directly (no tabs)
4545
await page.getByRole('button', { name: 'Add signer' }).click()
4646
await page.getByPlaceholder('Email').click()
47-
await page.getByPlaceholder('Email').pressSequentially('signer01@libresign.coop')
47+
await page.getByPlaceholder('Email').pressSequentially('signer01@libresign.coop', { delay: 50 })
4848
await page.getByRole('option', { name: 'signer01@libresign.coop' }).click()
4949
await page.getByRole('textbox', { name: 'Signer name' }).fill('Signer 01')
5050
await page.getByRole('button', { name: 'Save' }).click()
5151

5252
// Add second signer
5353
await page.getByRole('button', { name: 'Add signer' }).click()
5454
await page.getByPlaceholder('Email').click()
55-
await page.getByPlaceholder('Email').pressSequentially('signer02@libresign.coop')
55+
await page.getByPlaceholder('Email').pressSequentially('signer02@libresign.coop', { delay: 50 })
5656
await page.getByRole('option', { name: 'signer02@libresign.coop' }).click()
5757
await page.getByRole('textbox', { name: 'Signer name' }).fill('Signer 02')
5858
await page.getByRole('button', { name: 'Save' }).click()

0 commit comments

Comments
 (0)