Skip to content

Commit 1d5218a

Browse files
test(e2e): debug: log URL being constructed before page.goto
Add explicit URL construction logging to see what path is being used. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 6511ed6 commit 1d5218a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ test('sign herself with click to sign', async ({ page }) => {
3434

3535
// Capture console logs to debug
3636
page.on('console', msg => console.log('BROWSER CONSOLE:', msg.type(), msg.text()))
37-
38-
await page.goto('./apps/libresign')
39-
40-
// Debug: capture page state before looking for button
37+
38+
// Debug: log the URL being constructed before goto
39+
const testUrl = new URL('./apps/libresign', 'http://localhost:8080').toString()
40+
console.log('Test URL constructed:', testUrl)
4141
console.log('Page URL:', page.url())
4242
console.log('Page title:', await page.title())
4343
await page.screenshot({ path: 'debug-before-click.png', fullPage: true })
4444
const bodyHTML = await page.evaluate(() => document.body.innerHTML)
4545
console.log('Body HTML length:', bodyHTML.length)
4646
console.log('Body HTML preview:', bodyHTML.substring(0, 500))
47-
47+
4848
await page.getByRole('button', { name: 'Upload from URL' }).click();
4949
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');
5050
await page.getByRole('button', { name: 'Send' }).click();

0 commit comments

Comments
 (0)