forked from baron/baron-sso
fix userfront e2e stability
This commit is contained in:
@@ -152,7 +152,8 @@ function collectClientFailures(page: Page): string[] {
|
|||||||
const text = message.text();
|
const text = message.text();
|
||||||
if (
|
if (
|
||||||
message.type() === 'error' ||
|
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);
|
failures.push(text);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,13 @@ type ProfileState = {
|
|||||||
async function enableFlutterAccessibility(page: Page): Promise<void> {
|
async function enableFlutterAccessibility(page: Page): Promise<void> {
|
||||||
const button = page.getByRole('button', { name: 'Enable accessibility' });
|
const button = page.getByRole('button', { name: 'Enable accessibility' });
|
||||||
if (await button.count()) {
|
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);
|
await page.waitForTimeout(200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user