Skip to content

Commit df33dce

Browse files
fix: measure the Access page after the browser resizes (#208985)
Measure Access containment on the first animation frame after each viewport resize, with the same overflow bounds and readability checks. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 3e02d37a-cbaf-4f5c-9c36-30df061784ca OpenClaw-Publication: bc82c58e-6e96-4481-bede-08f7bf5353f5
1 parent 9eb6202 commit df33dce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ui/src/e2e/access-member-layout.e2e.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ suite.define(() => {
253253
const node = page.locator('[aria-labelledby="ocid-nodes"] .ocid-access__row').first();
254254
for (const width of [390, 820, 1400]) {
255255
await page.setViewportSize({ width, height: width === 390 ? 480 : 844 });
256+
// Resize events update the shell's navigation layout before the next animation frame.
257+
await page.evaluate(() => new Promise(requestAnimationFrame));
256258
await expectContained(surface);
257259
await node.getByRole("button", { name: "Remove node", exact: true }).click();
258260
const nodeConfirm = node.getByRole("button", {

0 commit comments

Comments
 (0)