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.
This commit is contained in:
Owen W. Taylor 2025-04-07 13:57:03 -04:00
parent ffec6c6b5d
commit 25ee72e8fb

View file

@ -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