Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { expect, test } from "./utils/test";
|
||||
import { expectNoCriticalA11yViolations } from "./utils/axe";
|
||||
import { loginAsAdminUser } from "./utils/auth";
|
||||
import { skipIfUnavailable } from "./utils/navigation";
|
||||
import { skipOrFailWhenE2eInputsMissing } from "./utils/readiness";
|
||||
|
||||
const credentials = process.env.E2E_ADMIN_EMAIL && process.env.E2E_ADMIN_PASSWORD
|
||||
? { email: process.env.E2E_ADMIN_EMAIL, password: process.env.E2E_ADMIN_PASSWORD }
|
||||
: null;
|
||||
|
||||
test.describe("AK-P19 platform admin interim screens", () => {
|
||||
test("opens billing, jobs, health and support through the admin host", async ({ page }) => {
|
||||
skipOrFailWhenE2eInputsMissing(["E2E_ADMIN_EMAIL", "E2E_ADMIN_PASSWORD"], "Skipping authenticated platform-admin smoke");
|
||||
await loginAsAdminUser(page, credentials!);
|
||||
const routes = ["/accounts/billing", "/jobs", "/health", "/support", "/accounts/new"] as const;
|
||||
const ids = ["ui.admin.billing.page", "ui.admin.jobs.page", "ui.admin.health.page", "ui.admin.support.page", "ui.admin.accounts.create.page"] as const;
|
||||
|
||||
for (let index = 0; index < routes.length; index += 1) {
|
||||
const response = await page.goto(routes[index], { waitUntil: "domcontentloaded" });
|
||||
await skipIfUnavailable(page, response, `AK-P19 admin route ${routes[index]} is unavailable`);
|
||||
await expect(page.locator(`[data-ui-id="${ids[index]}"]`)).toBeVisible();
|
||||
}
|
||||
|
||||
await expectNoCriticalA11yViolations(page);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user