Skip to content

Commit 18808ca

Browse files
test: wait for sign route before native engine signing
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 8530546 commit 18808ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

playwright/e2e/sign-herself-updates-files-list-with-native-engine.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ test('updates files list status after signing with native engine', async ({ page
7373

7474
await targetRow.getByRole('button', { name: 'Actions' }).click()
7575
await page.getByRole('menuitem', { name: 'Sign' }).click()
76-
await page.getByRole('button', { name: 'Sign the document.' }).click()
76+
await page.waitForURL('**/f/sign/**/pdf')
77+
const signButton = page.getByRole('button', { name: 'Sign the document.' })
78+
await expect(signButton).toBeVisible()
79+
await signButton.click()
7780
await page.getByRole('button', { name: 'Sign document' }).click()
7881
await page.waitForURL('**/validation/**')
7982
await expect(page.getByText('This document is valid')).toBeVisible()

0 commit comments

Comments
 (0)