fix(web): устойчивые ошибки courseNo и login E2E

This commit is contained in:
2026-10-29 20:01:40 +03:00
parent 65ed08f5c2
commit 7ef5c866a3
3 changed files with 24 additions and 4 deletions

View File

@@ -74,7 +74,10 @@ async function login(page: Page, login: string, password: string, expectedPath:
await page.goto("/login");
await page.fill("#login", login);
await page.fill("#password", password);
await Promise.all([page.waitForURL(expectedPath), page.click('button[type="submit"]')]);
await Promise.all([
page.waitForURL(expectedPath, { waitUntil: "domcontentloaded", timeout: 60_000 }),
page.click('button[type="submit"]'),
]);
}
test.beforeAll(async ({ playwright }) => {