Skip to content

Commit df26d20

Browse files
committed
test(e2e): add debug logging to investigate CI timeout
- Capture browser console logs - Log page URL, title, and HTML before button click - Take screenshot for visual debugging - Remove workaround navigation to /apps/files (works fine locally) Signed-off-by: Vitor Mattos <[email protected]>
1 parent 33a2770 commit df26d20

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

debug-before-click.png

102 KB
Loading

playwright/e2e/sign-herself-with-click-to-sign.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,19 @@ test('sign herself with click to sign', async ({ page }) => {
3232
]),
3333
)
3434

35+
// Capture console logs to debug
36+
page.on('console', msg => console.log('BROWSER CONSOLE:', msg.type(), msg.text()))
37+
3538
await page.goto('./apps/libresign')
39+
40+
// Debug: capture page state before looking for button
41+
console.log('Page URL:', page.url())
42+
console.log('Page title:', await page.title())
43+
await page.screenshot({ path: 'debug-before-click.png', fullPage: true })
44+
const bodyHTML = await page.evaluate(() => document.body.innerHTML)
45+
console.log('Body HTML length:', bodyHTML.length)
46+
console.log('Body HTML preview:', bodyHTML.substring(0, 500))
47+
3648
await page.getByRole('button', { name: 'Upload from URL' }).click();
3749
await page.getByRole('textbox', { name: 'URL of a PDF file' }).fill('https://raw.githubusercontent.com/LibreSign/libresign/main/tests/php/fixtures/pdfs/small_valid.pdf');
3850
await page.getByRole('button', { name: 'Send' }).click();

0 commit comments

Comments
 (0)