提交 925f3ab1 编写于 作者: J Joao Moreno

fixes #81871

上级 bb9beb73
......@@ -67,7 +67,7 @@ export class SCM extends Viewlet {
async unstage(name: string): Promise<void> {
await this.code.waitAndClick(SCM_RESOURCE_ACTION_CLICK(name, 'Unstage Changes'));
await this.waitForChange('app.js', 'Modified');
await this.waitForChange(name, 'Modified');
}
async commit(message: string): Promise<void> {
......
......@@ -13,7 +13,6 @@ 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 });
......@@ -52,6 +51,7 @@ export function setup() {
await app.workbench.scm.waitForChange('app.js', 'Modified');
await app.workbench.scm.stage('app.js');
await app.workbench.scm.openChange('app.js');
await app.workbench.scm.unstage('app.js');
});
......@@ -61,6 +61,7 @@ export function setup() {
await app.workbench.scm.openSCMViewlet();
await app.workbench.scm.waitForChange('app.js', 'Modified');
await app.workbench.scm.openChange('app.js');
await app.workbench.scm.stage('app.js');
await app.workbench.scm.commit('first commit');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册