Fix workspace selection and secret modal layout
Deploy / deploy (push) Failing after 1m43s
CI / Rust Checks (push) Successful in 5m54s
CI / UI Checks (push) Successful in 4s
CI / Deployment Manifests (push) Successful in 3s
CI / Frontend E2E (push) Successful in 4m24s

This commit is contained in:
github-ops
2026-06-22 18:30:56 +00:00
parent 3472d06a70
commit 5f8149d0d1
14 changed files with 286 additions and 43 deletions
+19
View File
@@ -65,3 +65,22 @@ test('secret modal shows fields for selected secret kind only', async ({ page })
await expect(basicField).toBeHidden();
await expect(jsonField).toBeHidden();
});
test('generic json secret modal stays inside compact viewport', async ({ page }) => {
await page.setViewportSize({ width: 900, height: 520 });
await login(page);
await page.goto('/secrets');
await page.locator('[data-testid="secret-create-button"]').click();
await page.locator('[data-testid="secret-kind-select"]').selectOption('generic');
const modal = page.locator('[data-testid="secret-create-modal"] .modal');
await expect(modal).toBeVisible();
const box = await modal.boundingBox();
expect(box).not.toBeNull();
expect(box.y).toBeGreaterThanOrEqual(0);
expect(box.y + box.height).toBeLessThanOrEqual(520);
await expect(page.locator('[data-testid="secret-name-input"]')).toBeVisible();
await expect(page.locator('[data-testid="secret-submit-button"]')).toBeVisible();
});