From e6631d2b1e2f2e9fe47d0dbfa51face9b293c01a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 2 Nov 2026 15:28:59 -0700 Subject: [PATCH] test: align floating tab width coverage with 300px cap (#37579) --- tests/e2e/floating-workspace-pane-height.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/floating-workspace-pane-height.spec.ts b/tests/e2e/floating-workspace-pane-height.spec.ts index 9c826735194..47211d5bd27 100644 --- a/tests/e2e/floating-workspace-pane-height.spec.ts +++ b/tests/e2e/floating-workspace-pane-height.spec.ts @@ -186,12 +186,12 @@ test('floating tabs keep their preferred width and share constrained space befor await openFloatingPanel(orcaPage) const panel = orcaPage.locator(OPEN_PANEL_SELECTOR).first() await panel.evaluate((element) => { - element.style.maxWidth = '720px' + element.style.maxWidth = '660px' }) const firstSlot = panel.locator(`[data-tab-strip-slot="${first}"]`) const width = (): Promise => firstSlot.evaluate((element) => element.getBoundingClientRect().width) - await expect.poll(width).toBeCloseTo(330, 0) + await expect.poll(width).toBeCloseTo(300, 0) const singleWidth = await width() const strip = panel.locator('.terminal-tab-strip').first() @@ -201,12 +201,12 @@ test('floating tabs keep their preferred width and share constrained space befor expect(await width()).toBeLessThan(singleWidth) const twoTabWidth = await width() await panel.evaluate((element) => { - element.style.maxWidth = '600px' + element.style.maxWidth = '540px' }) await expect.poll(width).toBeLessThan(twoTabWidth) expect(await width()).toBeCloseTo((await strip.evaluate((el) => el.clientWidth)) / 2, 0) await panel.evaluate((element) => { - element.style.maxWidth = '720px' + element.style.maxWidth = '660px' }) await expect.poll(width).toBeCloseTo(twoTabWidth, 0)