mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 15:23:44 +00:00
Stabilize remaining shard 3 E2E contracts
This commit is contained in:
parent
4e618cd393
commit
7977f3661a
2 changed files with 19 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ test.describe("Mobile viewport flows", () => {
|
|||
|
||||
const table = page.locator("table.workload-table--mobile");
|
||||
await expect(table).toBeVisible({ timeout: 30_000 });
|
||||
await expect(table).toHaveClass(/min-w-\[36rem\]/);
|
||||
await expect(table).toHaveClass(/min-w-\[0px\]/);
|
||||
await expect(table.locator("xpath=..")).toHaveClass(/overflow-x-auto/);
|
||||
});
|
||||
|
||||
|
|
@ -235,7 +235,13 @@ test.describe("Mobile viewport flows", () => {
|
|||
for (const tabId of ["alerts", "ai", "settings"]) {
|
||||
const button = utilityRail.locator(`button[data-tab-id="${tabId}"]`);
|
||||
await expect(button).toBeVisible();
|
||||
const box = await button.boundingBox();
|
||||
let box = await button.boundingBox();
|
||||
await expect
|
||||
.poll(async () => {
|
||||
box = await button.boundingBox();
|
||||
return box;
|
||||
})
|
||||
.not.toBeNull();
|
||||
expect(
|
||||
box,
|
||||
`${tabId} utility destination should have a layout box`,
|
||||
|
|
|
|||
|
|
@ -210,7 +210,18 @@ test.describe('Proxmox cluster node display names', () => {
|
|||
// Equal display labels are intentionally valid presentation. The write
|
||||
// target remains the second member's immutable identity.
|
||||
await page.getByLabel('Display name for pve2').fill('Render East');
|
||||
const displayNameUpdate = page.waitForRequest((request) => {
|
||||
if (
|
||||
request.method() !== 'PUT' ||
|
||||
new URL(request.url()).pathname !== '/api/config/nodes/pve-0'
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
const payload = request.postDataJSON() as Record<string, unknown> | null;
|
||||
return Array.isArray(payload?.clusterNodeDisplayNameOverrides);
|
||||
});
|
||||
await page.getByRole('button', { name: 'Save changes', exact: true }).click();
|
||||
await displayNameUpdate;
|
||||
|
||||
await expect.poll(() => updatePayload).toBeDefined();
|
||||
expect(updatePayload?.clusterNodeDisplayNameOverrides).toEqual([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue