From 5bfaf29f2bbcfeb057f68f5df0ffcec33b9dbf18 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 10 Nov 2021 08:38:02 -0800 Subject: [PATCH] Fix layering problem --- test/automation/src/playwrightDriver.ts | 18 +++++++++++++++++- .../areas/terminal/terminal-profiles.test.ts | 1 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/test/automation/src/playwrightDriver.ts b/test/automation/src/playwrightDriver.ts index 5e9b93f030a..e406b740f85 100644 --- a/test/automation/src/playwrightDriver.ts +++ b/test/automation/src/playwrightDriver.ts @@ -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; + doubleClick(selector: string): Promise; + setValue(selector: string, text: string): Promise; + getTitle(): Promise; + isActiveElement(selector: string): Promise; + getElements(selector: string, recursive: boolean): Promise; + getElementXY(selector: string, xoffset?: number, yoffset?: number): Promise<{ x: number; y: number; }>; + typeInEditor(selector: string, text: string): Promise; + getTerminalBuffer(selector: string): Promise; + writeInTerminal(selector: string, text: string): Promise; + getLocaleInfo(): Promise; + getLocalizedStrings(): Promise +} const width = 1200; const height = 800; diff --git a/test/smoke/src/areas/terminal/terminal-profiles.test.ts b/test/smoke/src/areas/terminal/terminal-profiles.test.ts index 6a4004522e4..b4c980dc0e4 100644 --- a/test/smoke/src/areas/terminal/terminal-profiles.test.ts +++ b/test/smoke/src/areas/terminal/terminal-profiles.test.ts @@ -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);