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
+3
-8
@@ -27,7 +27,7 @@ test.describe("tenant API keys mobile a11y", () => {
|
||||
skipOrFailWhenE2eFixtureMissing("Tenant API key create link is not visible for this fixture");
|
||||
}
|
||||
await newLink.click();
|
||||
await expect(page).toHaveURL(/\/settings\/api\/keys\/new(?:[?#].*)?$/u);
|
||||
await expect(page).toHaveURL(/\/settings\/integrations\/api\/keys\/new(?:[?#].*)?$/u);
|
||||
|
||||
const form = page.locator('form:has(input[name="action"][value="create"])').first();
|
||||
await expect(form).toBeVisible();
|
||||
@@ -35,13 +35,11 @@ test.describe("tenant API keys mobile a11y", () => {
|
||||
await expect(form.locator('input[name="expires"]').first()).toBeVisible();
|
||||
await expect(form.locator('input[name="active"]').first()).toBeAttached();
|
||||
await expect(form.locator('input[name="csrf"]').first()).not.toHaveValue("");
|
||||
await expect.poll(async () => form.locator('input[name="entities[]"]').count()).toBeGreaterThan(0);
|
||||
|
||||
await expectNoHorizontalOverflow(page);
|
||||
await expectNoCriticalA11yViolations(page);
|
||||
});
|
||||
|
||||
test("submits create contract with alias, entity permissions, and csrf without mutating data", async ({ page }) => {
|
||||
test("submits create contract with alias, active state, and csrf without mutating data", async ({ page }) => {
|
||||
await loginAsTenantUser(page, credentials!);
|
||||
|
||||
const response = await page.goto(apiKeysPath!, { waitUntil: "domcontentloaded" });
|
||||
@@ -56,9 +54,6 @@ test.describe("tenant API keys mobile a11y", () => {
|
||||
const form = page.locator('form:has(input[name="action"][value="create"])').first();
|
||||
await expect(form).toBeVisible();
|
||||
await form.locator('input[name="alias"]').fill(`e2e-contract-${Date.now()}`);
|
||||
if ((await form.locator('input[name$="-read"]').count()) > 0) {
|
||||
await form.locator('input[name$="-read"]').first().click({ force: true });
|
||||
}
|
||||
|
||||
const submitted = await interceptCurrentRoutePost(page, {
|
||||
status: 200,
|
||||
@@ -71,6 +66,6 @@ test.describe("tenant API keys mobile a11y", () => {
|
||||
expect(postDataIncludesField(submitted.value, "action", /^create$/u)).toBe(true);
|
||||
expect(postDataIncludesField(submitted.value, "csrf", /.+/u)).toBe(true);
|
||||
expect(postDataIncludesField(submitted.value, "alias", /^e2e-contract-/u)).toBe(true);
|
||||
expect(postDataIncludesField(submitted.value, "entities[]", /"entityId"/u)).toBe(true);
|
||||
expect(postDataIncludesField(submitted.value, "active", /^(on|true)$/u)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user