Skip to content

Commit 1671871

Browse files
author
Curry
committed
test: capture production login smoke diagnostics
1 parent 60a5462 commit 1671871

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/e2e/login.spec.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { expect, test } from '@playwright/test'
22

33
test('login page renders its local administrator credentials form', async ({ page }) => {
4-
await page.goto('/login')
4+
page.on('pageerror', (error) => console.log('pageerror', error.message))
5+
const response = await page.goto('/login')
6+
console.log('login response', response?.status(), page.url(), (await page.content()).slice(0, 2000))
57
await expect(page.locator('[data-slot="card-title"]')).toBeVisible({ timeout: 15_000 })
68
await expect(page.getByLabel('用户名')).toHaveValue('admin')
79
await expect(page.getByLabel('密码')).toBeVisible()

0 commit comments

Comments
 (0)