mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
More clean up of terminal smoke test init
This commit is contained in:
parent
d7f10626b8
commit
42bd3e884b
|
@ -8,10 +8,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
|
||||||
|
|
||||||
export function setup(opts: ParsedArgs) {
|
export function setup(opts: ParsedArgs) {
|
||||||
describe('Terminal Persistence', () => {
|
describe('Terminal Persistence', () => {
|
||||||
let terminal: Terminal;
|
|
||||||
|
|
||||||
// Acquire automation API
|
// Acquire automation API
|
||||||
before(async function () {
|
let terminal: Terminal;
|
||||||
|
before(function () {
|
||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
terminal = app.workbench.terminal;
|
terminal = app.workbench.terminal;
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,10 +11,9 @@ const ANY_PROFILE_NAME = '^((?!JavaScript Debug Terminal).)*$';
|
||||||
|
|
||||||
export function setup(opts: ParsedArgs) {
|
export function setup(opts: ParsedArgs) {
|
||||||
describe('Terminal Profiles', () => {
|
describe('Terminal Profiles', () => {
|
||||||
let terminal: Terminal;
|
|
||||||
|
|
||||||
// Acquire automation API
|
// Acquire automation API
|
||||||
before(async function () {
|
let terminal: Terminal;
|
||||||
|
before(function () {
|
||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
terminal = app.workbench.terminal;
|
terminal = app.workbench.terminal;
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,10 +9,9 @@ import { Application, Terminal, TerminalCommandId, TerminalCommandIdWithValue }
|
||||||
|
|
||||||
export function setup(opts: ParsedArgs) {
|
export function setup(opts: ParsedArgs) {
|
||||||
describe('Terminal Tabs', () => {
|
describe('Terminal Tabs', () => {
|
||||||
let terminal: Terminal;
|
|
||||||
|
|
||||||
// Acquire automation API
|
// Acquire automation API
|
||||||
before(async function () {
|
let terminal: Terminal;
|
||||||
|
before(function () {
|
||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
terminal = app.workbench.terminal;
|
terminal = app.workbench.terminal;
|
||||||
});
|
});
|
||||||
|
|
|
@ -12,8 +12,8 @@ import { setup as setupTerminalProfileTests } from './terminal-profiles.test';
|
||||||
import { setup as setupTerminalTabsTests } from './terminal-tabs.test';
|
import { setup as setupTerminalTabsTests } from './terminal-tabs.test';
|
||||||
|
|
||||||
export function setup(opts: minimist.ParsedArgs) {
|
export function setup(opts: minimist.ParsedArgs) {
|
||||||
describe.only('Terminal', () => {
|
describe('Terminal', () => {
|
||||||
// TODO: Enable terminal tests for non-web when it moved to playwright
|
// TODO: Enable terminal tests for non-web when the desktop driver is moved to playwright
|
||||||
if (!opts.web) {
|
if (!opts.web) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,9 @@ export function setup(opts: minimist.ParsedArgs) {
|
||||||
|
|
||||||
// Always show tabs to make getting terminal groups easier
|
// Always show tabs to make getting terminal groups easier
|
||||||
await app.workbench.settingsEditor.addUserSetting('terminal.integrated.tabs.hideCondition', '"never"');
|
await app.workbench.settingsEditor.addUserSetting('terminal.integrated.tabs.hideCondition', '"never"');
|
||||||
|
|
||||||
|
// Close the settings editor
|
||||||
|
await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
|
|
Loading…
Reference in a new issue