diff --git a/userfront-e2e/tests/auth-routing.spec.ts b/userfront-e2e/tests/auth-routing.spec.ts index 8e33ce05..66a3e645 100644 --- a/userfront-e2e/tests/auth-routing.spec.ts +++ b/userfront-e2e/tests/auth-routing.spec.ts @@ -152,7 +152,8 @@ function collectClientFailures(page: Page): string[] { const text = message.text(); if ( message.type() === 'error' || - /exception|verify_failed|verification failed|인증 실패/i.test(text) + (/exception|verify_failed|verification failed|인증 실패/i.test(text) && + !text.includes('Exception while loading service worker')) ) { failures.push(text); } diff --git a/userfront-e2e/tests/profile-department.spec.ts b/userfront-e2e/tests/profile-department.spec.ts index 50c7adf7..16f7a35b 100644 --- a/userfront-e2e/tests/profile-department.spec.ts +++ b/userfront-e2e/tests/profile-department.spec.ts @@ -9,7 +9,13 @@ type ProfileState = { async function enableFlutterAccessibility(page: Page): Promise { const button = page.getByRole('button', { name: 'Enable accessibility' }); if (await button.count()) { - await button.click({ force: true }); + await button.click({ force: true }).catch(async () => { + await page + .locator('flt-semantics-placeholder[aria-label="Enable accessibility"]') + .evaluate((element) => { + if (element instanceof HTMLElement) element.click(); + }); + }); await page.waitForTimeout(200); } }