fix(web): устойчивые ошибки courseNo и login E2E
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user