From 4f8fed2e2b9cdafebca16fcee92e3a8b752e0bf4 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:36:39 +0000 Subject: [PATCH] test(app): wait for both pins before the pinned sidebar drag (#11319) The pinned drag matched its two rows anywhere in the sidebar. Both rows also exist in their project groups, so the test read the order while only one pin had reached the Pinned section. The second pin then put its row on top, and the drag moved it back down, which left the order the test read. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> --- packages/app/e2e/browser/sidebar-reorder.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/app/e2e/browser/sidebar-reorder.spec.ts b/packages/app/e2e/browser/sidebar-reorder.spec.ts index cf885a1d14..0f871aefbb 100644 --- a/packages/app/e2e/browser/sidebar-reorder.spec.ts +++ b/packages/app/e2e/browser/sidebar-reorder.spec.ts @@ -118,10 +118,14 @@ test("projects and pinned chats reorder while ordinary workspaces stay newest fi await firstProject.client.setWorkspacePinned(firstProject.workspaceId, true); await secondProject.client.setWorkspacePinned(secondProject.workspaceId, true); const secondProjectWorkspaceTestId = `sidebar-workspace-row-${getServerId()}:${secondProject.workspaceId}`; + // Both rows also exist in their project groups, so match them only once each pin has + // moved its row into the Pinned section. await quickDragFirstRowAfterSecond( - page.locator( - `[data-testid="${firstWorkspaceTestId}"], [data-testid="${secondProjectWorkspaceTestId}"]`, - ), + page + .getByTestId("sidebar-pinned-section") + .locator( + `[data-testid="${firstWorkspaceTestId}"], [data-testid="${secondProjectWorkspaceTestId}"]`, + ), pressWorkspaceRow, ); } finally {