Fix git smoke tests

This commit is contained in:
Daniel Imms 2019-10-02 14:46:18 -07:00
parent 2cf9921ee5
commit 615e262789
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ import { findElement, findElements, Code } from './code';
const VIEWLET = 'div[id="workbench.view.scm"]';
const SCM_INPUT = `${VIEWLET} .scm-editor textarea`;
const SCM_RESOURCE = `${VIEWLET} .monaco-list-row > .resource`;
const SCM_RESOURCE = `${VIEWLET} .monaco-list-row .resource`;
const REFRESH_COMMAND = `div[id="workbench.parts.sidebar"] .actions-container a.action-label[title="Refresh"]`;
const COMMIT_COMMAND = `div[id="workbench.parts.sidebar"] .actions-container a.action-label[title="Commit"]`;
const SCM_RESOURCE_CLICK = (name: string) => `${SCM_RESOURCE} .monaco-icon-label[title*="${name}"] .label-name`;

View file

@ -13,6 +13,7 @@ export function setup() {
describe('Git', () => {
before(async function () {
const app = this.app as Application;
await app.workbench.settingsEditor.addUserSetting('scm.defaultViewMode', '"list"');
cp.execSync('git config user.name testuser', { cwd: app.workspacePathOrFolder });
cp.execSync('git config user.email monacotools@microsoft.com', { cwd: app.workspacePathOrFolder });