Skip to content

Commit 4bfcaf1

Browse files
test(e2e): capture blocked and normal signing UI screenshots
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e2c78a7 commit 4bfcaf1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

playwright/e2e/sign-password-non-retriable-error.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ test('closes password modal on non-retriable signing error', async ({ page }) =>
8989
await expect(page.getByRole('button', { name: 'Sign the document.' })).toBeHidden()
9090
await expect(page.getByRole('button', { name: 'Try signing again' })).toBeVisible()
9191
await expect(page.locator('.button-wrapper').getByText('Certificate revocation status could not be verified').first()).toBeVisible()
92+
await page.screenshot({ path: '/tmp/playwright-results/non-retriable-blocked-ui.png', fullPage: true })
9293
})
9394

9495
test('keeps normal sign UI when no non-retriable error is returned', async ({ page }) => {
@@ -119,4 +120,5 @@ test('keeps normal sign UI when no non-retriable error is returned', async ({ pa
119120

120121
await expect(page.getByText('Signing is blocked until the certificate validation issue is resolved.')).toBeHidden()
121122
await expect(page.getByRole('button', { name: 'Try signing again' })).toBeHidden()
123+
await page.screenshot({ path: '/tmp/playwright-results/non-retriable-normal-ui.png', fullPage: true })
122124
})

0 commit comments

Comments
 (0)