From 25ee72e8fbbe9871823462d4e8bd72de36a5a6c3 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 7 Apr 2025 13:57:03 -0400 Subject: [PATCH] e2e: select quick picks based on strings, not harcoded indexes Selecting the 14th view container ran into problems when an (emty) Continue Console view container was added. This also changes it to move to new secondary sidebar container rather than reusing one from Copilot. --- extensions/vscode/e2e/actions/GUI.actions.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/e2e/actions/GUI.actions.ts b/extensions/vscode/e2e/actions/GUI.actions.ts index ace296ca3..ef2bf0c16 100644 --- a/extensions/vscode/e2e/actions/GUI.actions.ts +++ b/extensions/vscode/e2e/actions/GUI.actions.ts @@ -16,8 +16,12 @@ export class GUIActions { await GUIActions.toggleGui(); await TestUtils.waitForSuccess(async () => { await new Workbench().executeCommand("View: Move View"); - await (await InputBox.create(DEFAULT_TIMEOUT.MD)).selectQuickPick(4); - await (await InputBox.create(DEFAULT_TIMEOUT.MD)).selectQuickPick(14); + await ( + await InputBox.create(DEFAULT_TIMEOUT.MD) + ).selectQuickPick("Continue"); + await ( + await InputBox.create(DEFAULT_TIMEOUT.MD) + ).selectQuickPick("New Secondary Side Bar Entry"); }); // first call focuses the input