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
@@ -2,18 +2,23 @@ import { expect, test } from "./utils/test";
|
||||
import { getTenantCredentials, loginAsTenantUser } from "./utils/auth";
|
||||
import { skipOrFailWhenE2eInputsMissing } from "./utils/readiness";
|
||||
|
||||
// D-D0a — Smoke: Login -> /select-tenant -> Profil-Karte sichtbar -> Karte klicken -> Tenant-Space.
|
||||
// D-D0a — Smoke: Login -> /select-tenant -> single-tenant redirect or picker -> Tenant-Space.
|
||||
const credentials = getTenantCredentials();
|
||||
|
||||
test.describe("select-tenant (Login Tenantauswahl)", () => {
|
||||
test("renders the profile picker and enters a tenant on card click", async ({ page }) => {
|
||||
test("enters a single tenant directly or selects one from the profile picker", async ({ page }) => {
|
||||
if (!credentials) {
|
||||
skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD"], "Skipping select-tenant smoke flow");
|
||||
}
|
||||
|
||||
await loginAsTenantUser(page, credentials!);
|
||||
|
||||
await page.goto("/select-tenant", { waitUntil: "domcontentloaded" });
|
||||
await page.goto(new URL("/select-tenant", page.url()).href, { waitUntil: "domcontentloaded" });
|
||||
if (/\/dashboard(?:[?#].*)?$/u.test(page.url())) {
|
||||
await expect(page).toHaveURL(/\/dashboard(?:[?#].*)?$/u);
|
||||
return;
|
||||
}
|
||||
|
||||
await expect(page.locator('[data-ui-id="ui.auth.selectTenant.page"]')).toBeVisible();
|
||||
|
||||
const firstCard = page.locator('[data-ui-id="ui.auth.selectTenant.card"]').first();
|
||||
|
||||
Reference in new issue
Block a user