mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
fix #137799
This commit is contained in:
parent
18725fc147
commit
e89889fe54
|
@ -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*/, '')
|
||||
};
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in a new issue