mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 15:19:54 +01:00
Fix layering problem
This commit is contained in:
@@ -12,7 +12,23 @@ import { IDriver, IDisposable } from './driver';
|
||||
import { URI } from 'vscode-uri';
|
||||
import * as kill from 'tree-kill';
|
||||
import { PageFunction } from 'playwright-core/types/structs';
|
||||
import { IWindowDriver } from '../../../src/vs/platform/driver/common/driver';
|
||||
import { IElement, ILocaleInfo, ILocalizedStrings } from '.';
|
||||
|
||||
// TODO: Copy driver over to ./driver.d.ts?
|
||||
export interface IWindowDriver {
|
||||
click(selector: string, xoffset?: number | undefined, yoffset?: number | undefined): Promise<void>;
|
||||
doubleClick(selector: string): Promise<void>;
|
||||
setValue(selector: string, text: string): Promise<void>;
|
||||
getTitle(): Promise<string>;
|
||||
isActiveElement(selector: string): Promise<boolean>;
|
||||
getElements(selector: string, recursive: boolean): Promise<IElement[]>;
|
||||
getElementXY(selector: string, xoffset?: number, yoffset?: number): Promise<{ x: number; y: number; }>;
|
||||
typeInEditor(selector: string, text: string): Promise<void>;
|
||||
getTerminalBuffer(selector: string): Promise<string[]>;
|
||||
writeInTerminal(selector: string, text: string): Promise<void>;
|
||||
getLocaleInfo(): Promise<ILocaleInfo>;
|
||||
getLocalizedStrings(): Promise<ILocalizedStrings>
|
||||
}
|
||||
|
||||
const width = 1200;
|
||||
const height = 800;
|
||||
|
||||
@@ -27,7 +27,6 @@ export function setup(opts: ParsedArgs) {
|
||||
return buffer.some(e => e.length > 100);
|
||||
}, 'The terminal buffer should have some content');
|
||||
|
||||
|
||||
// Verify the terminal single tab shows up and has a title
|
||||
const terminalTab = await app.code.waitForElement('.single-terminal-tab');
|
||||
ok(terminalTab.textContent.trim().length > 0);
|
||||
|
||||
Reference in New Issue
Block a user