This commit is contained in:
Megan Rogge 2021-11-30 11:20:20 -08:00
parent 18725fc147
commit e89889fe54
No known key found for this signature in database
GPG key ID: 69182D7934F25879
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ export class Terminal {
const tabCount = (await this.code.waitForElements(Selector.Tabs, true)).length;
const groups: TerminalGroup[] = [];
for (let i = 0; i < tabCount; i++) {
const instance = await this.code.waitForElement(`${Selector.Tabs}[data-index="${i}"] ${Selector.TabsEntry}`);
const instance = await this.code.waitForElement(`${Selector.Tabs}[data-index="${i}"] ${Selector.TabsEntry}`, e => e?.textContent?.length ? e?.textContent?.length > 1 : false);
const label: TerminalLabel = {
name: instance.textContent.replace(/^[├┌└]\s*/, '')
};

View file

@ -17,7 +17,7 @@ export function setup(opts: ParsedArgs) {
describe('detach/attach', () => {
// https://github.com/microsoft/vscode/issues/137799
it.skip('should support basic reconnection', async () => {
it('should support basic reconnection', async () => {
await terminal.runCommand(TerminalCommandId.CreateNew);
// TODO: Handle passing in an actual regex, not string
await terminal.assertTerminalGroups([