From 56c64ba97f30fcd2c32c301b102662d9db52f8ea Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 11 Nov 2026 20:01:45 -0800 Subject: [PATCH] test(tab-group): assert the dragged tab moves between strips in the DOM --- tests/e2e/narrow-tab-group-drag-handle.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/narrow-tab-group-drag-handle.spec.ts b/tests/e2e/narrow-tab-group-drag-handle.spec.ts index 20855b53bde..3567796bfcf 100644 --- a/tests/e2e/narrow-tab-group-drag-handle.spec.ts +++ b/tests/e2e/narrow-tab-group-drag-handle.spec.ts @@ -103,4 +103,8 @@ test('a narrow tab group keeps a grabbable tab and can be dragged into another g ) ) .toBe(layout.leftGroupId) + // The user sees the tab move: the left strip gains it and the right strip no longer shows it. + const leftStrip = orcaPage.locator(`[data-tab-group-strip-id="${layout.leftGroupId}"]`) + await expect(leftStrip.locator('[data-tab-id]')).toHaveCount(2) + await expect(rightStrip.locator('[data-tab-id]')).toHaveCount(0) })