diff --git a/test/smoke/src/areas/git/git.test.ts b/test/smoke/src/areas/git/git.test.ts index 32450b9b3a3..1f27e0b32e4 100644 --- a/test/smoke/src/areas/git/git.test.ts +++ b/test/smoke/src/areas/git/git.test.ts @@ -11,11 +11,9 @@ const DIFF_EDITOR_LINE_INSERT = '.monaco-diff-editor .editor.modified .line-inse const SYNC_STATUSBAR = 'div[id="workbench.parts.statusbar"] .statusbar-entry a[title$="Synchronize Changes"]'; describe('Git', () => { - let app: SpectronApplication; - before(() => { app = new SpectronApplication(); return app.start('Git'); }); - after(() => app.stop()); - it('reflects working tree changes', async function () { + const app = this.app as SpectronApplication; + await app.workbench.scm.openSCMViewlet(); await app.workbench.quickopen.openFile('app.js'); @@ -39,6 +37,8 @@ describe('Git', () => { }); it('opens diff editor', async function () { + const app = this.app as SpectronApplication; + await app.workbench.scm.openSCMViewlet(); const appJs = await app.workbench.scm.waitForChange(c => c.name === 'app.js'); await app.workbench.scm.openChange(appJs); @@ -46,6 +46,8 @@ describe('Git', () => { }); it('stages correctly', async function () { + const app = this.app as SpectronApplication; + await app.workbench.scm.openSCMViewlet(); const appJs = await app.workbench.scm.waitForChange(c => c.name === 'app.js' && c.type === 'Modified'); @@ -58,6 +60,8 @@ describe('Git', () => { }); it(`stages, commits changes and verifies outgoing change`, async function () { + const app = this.app as SpectronApplication; + await app.workbench.scm.openSCMViewlet(); const appJs = await app.workbench.scm.waitForChange(c => c.name === 'app.js' && c.type === 'Modified'); diff --git a/test/smoke/src/main.ts b/test/smoke/src/main.ts index cd0133da15c..ac85b1c4f23 100644 --- a/test/smoke/src/main.ts +++ b/test/smoke/src/main.ts @@ -234,7 +234,7 @@ import './areas/search/search.test'; import './areas/css/css.test'; import './areas/editor/editor.test'; import './areas/debug/debug.test'; -// import './areas/git/git.test'; +import './areas/git/git.test'; // import './areas/terminal/terminal.test'; // import './areas/statusbar/statusbar.test'; // import './areas/extensions/extensions.test';