Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -0,0 +1,42 @@
|
||||
import { expect, test } from "./utils/test";
|
||||
import { getTenantCredentials, loginAsTenantUser } from "./utils/auth";
|
||||
import { skipIfUnavailable } from "./utils/navigation";
|
||||
import { skipOrFailWhenE2eInputsMissing } from "./utils/readiness";
|
||||
|
||||
/**
|
||||
* Email-Inbox smoke (VA-P23 / DoD D.19): Login -> /emails oeffnen -> Inbox
|
||||
* sichtbar; Settings-Seite rendert die Connect-Flaechen.
|
||||
*
|
||||
* Beide Routen sind modul-gegated (tenantHasModule "email-inbox") + permission-
|
||||
* gegated (email.read_own). Ohne verbundenes Postfach zeigt die Inbox den
|
||||
* Klartext-Empty-State (kein Postfach verbunden) — auch das ist ein gueltiger
|
||||
* Smoke-Durchlauf. Skippt ohne E2E-Credentials / wenn die Route im Environment
|
||||
* nicht erreichbar ist (404 bei fehlendem Modul/Recht).
|
||||
*/
|
||||
const credentials = getTenantCredentials();
|
||||
const dashboardPath = process.env.E2E_TENANT_DASHBOARD_PATH ?? "/app/dashboard";
|
||||
const emailsPath = process.env.E2E_TENANT_EMAILS_PATH ?? dashboardPath.replace(/\/dashboard\/?$/u, "/emails");
|
||||
const emailSettingsPath =
|
||||
process.env.E2E_TENANT_EMAIL_SETTINGS_PATH ?? dashboardPath.replace(/\/dashboard\/?$/u, "/settings/integrations/email");
|
||||
|
||||
test.describe("email inbox smoke", () => {
|
||||
test("renders the inbox list (or its Klartext no-mailbox state)", async ({ page }) => {
|
||||
skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD"], "Email inbox smoke inputs not configured");
|
||||
await loginAsTenantUser(page, credentials!);
|
||||
|
||||
const response = await page.goto(emailsPath, { waitUntil: "domcontentloaded" });
|
||||
await skipIfUnavailable(page, response, "Emails path is not reachable in this environment");
|
||||
|
||||
await expect(page.locator('[data-ui-id="ui.email.inbox"]')).toBeVisible();
|
||||
});
|
||||
|
||||
test("renders the mailbox connect settings", async ({ page }) => {
|
||||
skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD"], "Email inbox smoke inputs not configured");
|
||||
await loginAsTenantUser(page, credentials!);
|
||||
|
||||
const response = await page.goto(emailSettingsPath, { waitUntil: "domcontentloaded" });
|
||||
await skipIfUnavailable(page, response, "Email settings path is not reachable in this environment");
|
||||
|
||||
await expect(page.locator('[data-ui-id="ui.email.settings"]')).toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user