Skip to content

Commit 42bd3e8

Browse files
committed
More clean up of terminal smoke test init
1 parent d7f1062 commit 42bd3e8

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

test/smoke/src/areas/terminal/terminal-persistence.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
88

99
export function setup(opts: ParsedArgs) {
1010
describe('Terminal Persistence', () => {
11-
let terminal: Terminal;
12-
1311
// Acquire automation API
14-
before(async function () {
12+
let terminal: Terminal;
13+
before(function () {
1514
const app = this.app as Application;
1615
terminal = app.workbench.terminal;
1716
});

test/smoke/src/areas/terminal/terminal-profiles.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ const ANY_PROFILE_NAME = '^((?!JavaScript Debug Terminal).)*$';
1111

1212
export function setup(opts: ParsedArgs) {
1313
describe('Terminal Profiles', () => {
14-
let terminal: Terminal;
15-
1614
// Acquire automation API
17-
before(async function () {
15+
let terminal: Terminal;
16+
before(function () {
1817
const app = this.app as Application;
1918
terminal = app.workbench.terminal;
2019
});

test/smoke/src/areas/terminal/terminal-tabs.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
99

1010
export function setup(opts: ParsedArgs) {
1111
describe('Terminal Tabs', () => {
12-
let terminal: Terminal;
13-
1412
// Acquire automation API
15-
before(async function () {
13+
let terminal: Terminal;
14+
before(function () {
1615
const app = this.app as Application;
1716
terminal = app.workbench.terminal;
1817
});

test/smoke/src/areas/terminal/terminal.test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { setup as setupTerminalProfileTests } from './terminal-profiles.test';
1212
import { setup as setupTerminalTabsTests } from './terminal-tabs.test';
1313

1414
export function setup(opts: minimist.ParsedArgs) {
15-
describe.only('Terminal', () => {
16-
// TODO: Enable terminal tests for non-web when it moved to playwright
15+
describe('Terminal', () => {
16+
// TODO: Enable terminal tests for non-web when the desktop driver is moved to playwright
1717
if (!opts.web) {
1818
return;
1919
}
@@ -29,6 +29,9 @@ export function setup(opts: minimist.ParsedArgs) {
2929

3030
// Always show tabs to make getting terminal groups easier
3131
await app.workbench.settingsEditor.addUserSetting('terminal.integrated.tabs.hideCondition', '"never"');
32+
33+
// Close the settings editor
34+
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
3235
});
3336

3437
afterEach(async () => {

0 commit comments

Comments
 (0)