Skip to content
Merged
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@openai/codex": "0.160.1",
"@playwright/test": "1.63.0",
"@playwright/test": "1.64.0",
"acorn": "8.19.0"
}
}
17 changes: 10 additions & 7 deletions tests/engineering/dashboard.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5417,13 +5417,16 @@ test.describe("Engineering Status browser smoke", () => {
}

await page.setViewportSize({ width: 390, height: 844 });
const [narrowUsage, narrowTimeline] = await Promise.all([
cards.nth(0).boundingBox(), cards.nth(1).boundingBox(),
]);
expect(narrowUsage).not.toBeNull();
expect(narrowTimeline).not.toBeNull();
expect(Math.abs(narrowTimeline.x - narrowUsage.x)).toBeLessThanOrEqual(1);
expect(narrowTimeline.y).toBeGreaterThan(narrowUsage.y);
// Viewport resizing can resolve before the responsive layout is painted.
await expect(async () => {
const [narrowUsage, narrowTimeline] = await Promise.all([
cards.nth(0).boundingBox(), cards.nth(1).boundingBox(),
]);
expect(narrowUsage).not.toBeNull();
expect(narrowTimeline).not.toBeNull();
expect(Math.abs(narrowTimeline.x - narrowUsage.x)).toBeLessThanOrEqual(1);
expect(narrowTimeline.y).toBeGreaterThan(narrowUsage.y);
}).toPass({ timeout: 5000 });
});

test("formats preflight timestamps through the selected dashboard locale", async ({ page }) => {
Expand Down