mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Fix git smoke tests
This commit is contained in:
parent
2cf9921ee5
commit
615e262789
|
@ -9,7 +9,7 @@ import { findElement, findElements, Code } from './code';
|
||||||
|
|
||||||
const VIEWLET = 'div[id="workbench.view.scm"]';
|
const VIEWLET = 'div[id="workbench.view.scm"]';
|
||||||
const SCM_INPUT = `${VIEWLET} .scm-editor textarea`;
|
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 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 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`;
|
const SCM_RESOURCE_CLICK = (name: string) => `${SCM_RESOURCE} .monaco-icon-label[title*="${name}"] .label-name`;
|
||||||
|
|
|
@ -13,6 +13,7 @@ export function setup() {
|
||||||
describe('Git', () => {
|
describe('Git', () => {
|
||||||
before(async function () {
|
before(async function () {
|
||||||
const app = this.app as Application;
|
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.name testuser', { cwd: app.workspacePathOrFolder });
|
||||||
cp.execSync('git config user.email monacotools@microsoft.com', { cwd: app.workspacePathOrFolder });
|
cp.execSync('git config user.email monacotools@microsoft.com', { cwd: app.workspacePathOrFolder });
|
||||||
|
|
Loading…
Reference in a new issue