More clean up of terminal smoke test init

This commit is contained in:
Daniel Imms 2021-11-23 15:46:18 -08:00
parent d7f10626b8
commit 42bd3e884b
4 changed files with 11 additions and 11 deletions

View file

@ -8,10 +8,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
export function setup(opts: ParsedArgs) {
describe('Terminal Persistence', () => {
let terminal: Terminal;
// Acquire automation API
before(async function () {
let terminal: Terminal;
before(function () {
const app = this.app as Application;
terminal = app.workbench.terminal;
});

View file

@ -11,10 +11,9 @@ const ANY_PROFILE_NAME = '^((?!JavaScript Debug Terminal).)*$';
export function setup(opts: ParsedArgs) {
describe('Terminal Profiles', () => {
let terminal: Terminal;
// Acquire automation API
before(async function () {
let terminal: Terminal;
before(function () {
const app = this.app as Application;
terminal = app.workbench.terminal;
});

View file

@ -9,10 +9,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
export function setup(opts: ParsedArgs) {
describe('Terminal Tabs', () => {
let terminal: Terminal;
// Acquire automation API
before(async function () {
let terminal: Terminal;
before(function () {
const app = this.app as Application;
terminal = app.workbench.terminal;
});

View file

@ -12,8 +12,8 @@ import { setup as setupTerminalProfileTests } from './terminal-profiles.test';
import { setup as setupTerminalTabsTests } from './terminal-tabs.test';
export function setup(opts: minimist.ParsedArgs) {
describe.only('Terminal', () => {
// TODO: Enable terminal tests for non-web when it moved to playwright
describe('Terminal', () => {
// TODO: Enable terminal tests for non-web when the desktop driver is moved to playwright
if (!opts.web) {
return;
}
@ -29,6 +29,9 @@ export function setup(opts: minimist.ParsedArgs) {
// Always show tabs to make getting terminal groups easier
await app.workbench.settingsEditor.addUserSetting('terminal.integrated.tabs.hideCondition', '"never"');
// Close the settings editor
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
});
afterEach(async () => {