test: stabilize browser session setup and OpenAPI assertions
CI / Rust Checks (pull_request) Successful in 15m33s
CI / UI Checks (pull_request) Successful in 5s
CI / Community Image Smoke (pull_request) Successful in 6m28s
CI / Frontend E2E (pull_request) Successful in 7m27s
CI / Deploy (pull_request) Skipped

This commit is contained in:
bsodfather committed 2026-10-05 02:13:18 +03:00
1 parent ca32d3767f
commit eacfab0dd8
12 files changed
+459 -2

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ async function login(page) {
await page.locator('.btn-signin').click();
await expect(page).toHaveURL(/\/$/);
await expect(page.locator('.page-title, .page-heading').first()).toBeVisible();
await page.waitForFunction(() => Boolean(window.CrankAuth && typeof window.CrankAuth.fetchSession === 'function'));
await page.evaluate(async () => {
await window.CrankAuth.fetchSession(false);
});
}
async function browserJson(page, method, urlPath, body, okStatuses = [200]) {