Skip to content

Commit de1577d

Browse files
test: stabilize drawn signature e2e flow
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 18808ca commit de1577d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

playwright/e2e/sign-herself-with-drawn-signature.spec.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@ test('sign herself with drawn signature', async ({ page }) => {
9494
page.getByLabel('PDF document to sign').getByRole('img', { name: 'Signature position for Admin Name' })
9595
).toBeVisible()
9696

97-
// If a signature already exists from a previous run, delete it before creating a new one
98-
const deleteSignatureBtn = page.getByRole('button', { name: 'Delete signature' })
99-
await deleteSignatureBtn.waitFor({ state: 'visible', timeout: 3000 }).catch(() => null)
100-
if (await deleteSignatureBtn.isVisible()) {
101-
await deleteSignatureBtn.click()
102-
}
103-
10497
await page.getByRole('button', { name: 'Define your signature.' }).click();
10598

10699
// The signature type chooser must use role="tab" + aria-selected, not aria-pressed toggle buttons.
@@ -129,6 +122,7 @@ test('sign herself with drawn signature', async ({ page }) => {
129122
await expect(page.getByRole('heading', { name: 'Confirm your signature' })).toBeVisible();
130123
await expect(page.getByRole('img', { name: 'Signature preview' })).toBeVisible();
131124
await page.getByLabel('Confirm your signature').getByRole('button', { name: 'Save' }).click();
125+
await expect(page.getByRole('button', { name: 'Sign the document.' })).toBeVisible();
132126

133127
await page.getByRole('button', { name: 'Sign the document.' }).click();
134128
await page.getByRole('button', { name: 'Sign document' }).click();

0 commit comments

Comments
 (0)