Skip to content

Commit ab6d98e

Browse files
Tyriarlszomoru
andauthored
Fix extraction of tab title name (microsoft#250621)
* Fix extraction of tab title name Fixes microsoft/vscode-internalbacklog#5499 * Engineering - update agent pool --------- Co-authored-by: Ladislau Szomoru <[email protected]>
1 parent 1e0fcec commit ab6d98e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build/azure-pipelines/product-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ extends:
337337
- ${{ if or(eq(parameters.VSCODE_BUILD_LINUX, true),eq(parameters.VSCODE_BUILD_LINUX_ARMHF, true),eq(parameters.VSCODE_BUILD_LINUX_ARM64, true),eq(parameters.VSCODE_BUILD_ALPINE, true),eq(parameters.VSCODE_BUILD_ALPINE_ARM64, true),eq(parameters.VSCODE_BUILD_MACOS, true),eq(parameters.VSCODE_BUILD_MACOS_ARM64, true),eq(parameters.VSCODE_BUILD_WIN32, true),eq(parameters.VSCODE_BUILD_WIN32_ARM64, true)) }}:
338338
- CompileCLI
339339
pool:
340-
name: 1es-windows-2019-x64
340+
name: 1es-windows-2022-x64
341341
os: windows
342342
jobs:
343343
- ${{ if eq(variables['VSCODE_CIBUILD'], true) }}:

test/automation/src/terminal.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export enum Selector {
1717
Xterm = `#terminal .terminal-wrapper`,
1818
XtermEditor = `.editor-instance .terminal-wrapper`,
1919
TabsEntry = '.terminal-tabs-entry',
20+
Name = '.label-name',
2021
Description = '.label-description',
2122
XtermFocused = '.terminal.xterm.focus',
2223
PlusButton = '.codicon-plus',
@@ -212,7 +213,7 @@ export class Terminal {
212213
const tabCount = (await this.code.waitForElements(Selector.Tabs, true)).length;
213214
const groups: TerminalGroup[] = [];
214215
for (let i = 0; i < tabCount; i++) {
215-
const title = await this.code.waitForElement(`${Selector.Tabs}[data-index="${i}"] ${Selector.TabsEntry}`, e => e?.textContent?.length ? e?.textContent?.length > 1 : false);
216+
const title = await this.code.waitForElement(`${Selector.Tabs}[data-index="${i}"] ${Selector.TabsEntry} ${Selector.Name}`, e => e?.textContent?.length ? e?.textContent?.length > 1 : false);
216217
const description: IElement | undefined = await this.code.waitForElement(`${Selector.Tabs}[data-index="${i}"] ${Selector.TabsEntry} ${Selector.Description}`, () => true);
217218

218219
const label: TerminalLabel = {
@@ -237,7 +238,7 @@ export class Terminal {
237238
private async assertTabExpected(selector?: string, listIndex?: number, nameRegex?: RegExp, icon?: string, color?: string, description?: string): Promise<void> {
238239
if (listIndex) {
239240
if (nameRegex) {
240-
await this.code.waitForElement(`${Selector.Tabs}[data-index="${listIndex}"] ${Selector.TabsEntry}`, entry => !!entry && !!entry?.textContent.match(nameRegex));
241+
await this.code.waitForElement(`${Selector.Tabs}[data-index="${listIndex}"] ${Selector.TabsEntry} ${Selector.Name}`, entry => !!entry && !!entry?.textContent.match(nameRegex));
241242
if (description) {
242243
await this.code.waitForElement(`${Selector.Tabs}[data-index="${listIndex}"] ${Selector.TabsEntry} ${Selector.Description}`, e => !!e && e.textContent === description);
243244
}

0 commit comments

Comments
 (0)