Path: blob/main/test/smoke/src/areas/terminal/terminal-helpers.ts
3520 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { Application } from '../../../../automation';67export async function setTerminalTestSettings(app: Application, additionalSettings: [key: string, value: string][] = []) {8await app.workbench.settingsEditor.addUserSettings([9// Work wrap is required when calling settingsEditor.addUserSetting multiple times or the10// click to focus will fail11['editor.wordWrap', '"on"'],12// Always show tabs to make getting terminal groups easier13['terminal.integrated.tabs.hideCondition', '"never"'],14// Use the DOM renderer for smoke tests so they can be inspected in the playwright trace15// viewer16['terminal.integrated.gpuAcceleration', '"off"'],17...additionalSettings18]);1920// Close the settings editor21await app.workbench.quickaccess.runCommand('workbench.action.closeAllEditors');22}232425