Skip to content

Commit

Permalink
Fix layering problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Nov 10, 2021
1 parent 6a6a1b6 commit 5bfaf29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 17 additions & 1 deletion test/automation/src/playwrightDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/smoke/src/areas/terminal/terminal-profiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5bfaf29

Please sign in to comment.