v1.12.21 관리자 미디어 조작 개선 및 CSP 관찰 안내 정리

This commit is contained in:
2026-09-28 16:52:14 +09:00
parent 5482318b84
commit 6886c57d04
18 changed files with 488 additions and 60 deletions

View File

@@ -10,6 +10,7 @@ const adminPassword = 'playwright-admin-password'
*/
const loginAdmin = async (page) => {
await page.goto('/admin/login')
await page.waitForLoadState('networkidle')
await page.getByLabel('이메일').fill(adminEmail)
await page.locator('input[type="password"]').fill(adminPassword)
@@ -17,7 +18,7 @@ const loginAdmin = async (page) => {
page.waitForResponse((response) =>
response.url().endsWith('/admin/api/auth/login') && response.status() === 200
),
page.getByRole('button', { name: '로그인' }).click()
page.getByRole('button', { name: '로그인', exact: true }).click()
])
await page.waitForURL(/\/admin(?:\/)?$/)
}