1
0
forked from baron/baron-sso

fix userfront e2e stability

This commit is contained in:
2026-05-21 18:36:44 +09:00
parent 7c809fb478
commit 9fc6459636
2 changed files with 9 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -9,7 +9,13 @@ type ProfileState = {
async function enableFlutterAccessibility(page: Page): Promise<void> {
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);
}
}