diff --git a/test/smoke/src/application.ts b/test/smoke/src/application.ts index 5ab35ebb77d00bb492eb99d628c7b6e11b3c9189..d646c6c6e6a14cca4a184d928f694a724209a0c7 100644 --- a/test/smoke/src/application.ts +++ b/test/smoke/src/application.ts @@ -71,12 +71,6 @@ export class SpectronApplication { return this.options.workspaceFilePath; } - private _suiteName: string = 'Init'; - - set suiteName(suiteName: string) { - this._suiteName = suiteName; - } - async start(waitForWelcome: boolean = true): Promise { await this._start(); diff --git a/test/smoke/src/areas/css/css.test.ts b/test/smoke/src/areas/css/css.test.ts index cce6027a18402fc0cbefc2cbfa729b3c57afb01d..ad0d7923b1ae6ce9505c5e3eff736b65052efa16 100644 --- a/test/smoke/src/areas/css/css.test.ts +++ b/test/smoke/src/areas/css/css.test.ts @@ -8,10 +8,6 @@ import { ProblemSeverity, Problems } from '../problems/problems'; export function setup() { describe('CSS', () => { - before(function () { - this.app.suiteName = 'CSS'; - }); - it('verifies quick outline', async function () { const app = this.app as SpectronApplication; await app.workbench.quickopen.openFile('style.css'); diff --git a/test/smoke/src/areas/debug/debug.test.ts b/test/smoke/src/areas/debug/debug.test.ts index 392a8c87e48744d99b8d61facd1418b2bcdb69ab..edb1d58be468e46119dc0d9d90b98229a49897e5 100644 --- a/test/smoke/src/areas/debug/debug.test.ts +++ b/test/smoke/src/areas/debug/debug.test.ts @@ -12,11 +12,6 @@ import { SpectronApplication } from '../../application'; export function setup() { describe('Debug', () => { - before(async function () { - const app = this.app as SpectronApplication; - app.suiteName = 'Debug'; - }); - it('configure launch json', async function () { const app = this.app as SpectronApplication; diff --git a/test/smoke/src/areas/editor/editor.test.ts b/test/smoke/src/areas/editor/editor.test.ts index 4f7267fef95074928bfad3fdcaa235fdf88722a5..5bc472182288e9a788e47186ce580964935e1fe5 100644 --- a/test/smoke/src/areas/editor/editor.test.ts +++ b/test/smoke/src/areas/editor/editor.test.ts @@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application'; export function setup() { describe('Editor', () => { - before(function () { - this.app.suiteName = 'Editor'; - }); - it('shows correct quick outline', async function () { const app = this.app as SpectronApplication; await app.workbench.quickopen.openFile('www'); diff --git a/test/smoke/src/areas/explorer/explorer.test.ts b/test/smoke/src/areas/explorer/explorer.test.ts index a18c7ec6f0c3825f9ab8bd796b42a90fd5a5ed61..5cde709ad741fcf515dc3b04cae20ea6228b72ef 100644 --- a/test/smoke/src/areas/explorer/explorer.test.ts +++ b/test/smoke/src/areas/explorer/explorer.test.ts @@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application'; export function setup() { describe('Explorer', () => { - before(function () { - this.app.suiteName = 'Explorer'; - }); - it('quick open search produces correct result', async function () { const app = this.app as SpectronApplication; const expectedNames = [ diff --git a/test/smoke/src/areas/extensions/extensions.test.ts b/test/smoke/src/areas/extensions/extensions.test.ts index ca3c2820676aee22f7e782ca9052a3a050bb13fb..f9e324c77c314152390d6705c189721752ba5143 100644 --- a/test/smoke/src/areas/extensions/extensions.test.ts +++ b/test/smoke/src/areas/extensions/extensions.test.ts @@ -8,10 +8,6 @@ import { SpectronApplication, Quality } from '../../application'; export function setup() { describe('Extensions', () => { - before(function () { - this.app.suiteName = 'Extensions'; - }); - it(`install and activate vscode-smoketest-check extension`, async function () { const app = this.app as SpectronApplication; diff --git a/test/smoke/src/areas/git/git.test.ts b/test/smoke/src/areas/git/git.test.ts index 1135877da50dc01935aa3609623032db9830c481..9c89b77a5e2c77e6c63c8064c08036117411d26e 100644 --- a/test/smoke/src/areas/git/git.test.ts +++ b/test/smoke/src/areas/git/git.test.ts @@ -11,11 +11,6 @@ const SYNC_STATUSBAR = 'div[id="workbench.parts.statusbar"] .statusbar-entry a[t export function setup() { describe('Git', () => { - before(async function () { - const app = this.app as SpectronApplication; - app.suiteName = 'Git'; - }); - it('reflects working tree changes', async function () { const app = this.app as SpectronApplication; diff --git a/test/smoke/src/areas/multiroot/multiroot.test.ts b/test/smoke/src/areas/multiroot/multiroot.test.ts index a5e1b9c92699e8a7cea0b61719f82dbbed0184ec..add575164a14521bb62d086090ecb8b702d2d8a5 100644 --- a/test/smoke/src/areas/multiroot/multiroot.test.ts +++ b/test/smoke/src/areas/multiroot/multiroot.test.ts @@ -10,8 +10,6 @@ export function setup() { describe('Multiroot', () => { before(async function () { - this.app.suiteName = 'Multiroot'; - const app = this.app as SpectronApplication; // restart with preventing additional windows from restoring diff --git a/test/smoke/src/areas/preferences/preferences.test.ts b/test/smoke/src/areas/preferences/preferences.test.ts index 76bddda4621b7726ad5706bba3bd8df6843709fa..21dde973031f7f1444d909149fcf64e2d6cef3c6 100644 --- a/test/smoke/src/areas/preferences/preferences.test.ts +++ b/test/smoke/src/areas/preferences/preferences.test.ts @@ -10,10 +10,6 @@ import { ActivityBarPosition } from '../activitybar/activityBar'; export function setup() { describe('Preferences', () => { - before(function () { - this.app.suiteName = 'Preferences'; - }); - it('turns off editor line numbers and verifies the live change', async function () { const app = this.app as SpectronApplication; diff --git a/test/smoke/src/areas/search/search.test.ts b/test/smoke/src/areas/search/search.test.ts index caa3444efe4958b69b1861d7517335989e59e3f9..9351c8fafe447a661185ee6b20206a92b95a8b59 100644 --- a/test/smoke/src/areas/search/search.test.ts +++ b/test/smoke/src/areas/search/search.test.ts @@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application'; export function setup() { describe('Search', () => { - before(function () { - this.app.suiteName = 'Search'; - }); - it('searches for body & checks for correct result number', async function () { const app = this.app as SpectronApplication; await app.workbench.search.openSearchViewlet(); diff --git a/test/smoke/src/areas/statusbar/statusbar.test.ts b/test/smoke/src/areas/statusbar/statusbar.test.ts index 24dce071f6c42a1faa4a691f7e280528b494b3ca..789549288472f0f159ad659b0ead7701042284eb 100644 --- a/test/smoke/src/areas/statusbar/statusbar.test.ts +++ b/test/smoke/src/areas/statusbar/statusbar.test.ts @@ -8,10 +8,6 @@ import { StatusBarElement } from './statusbar'; export function setup() { describe('Statusbar', () => { - before(function () { - this.app.suiteName = 'Statusbar'; - }); - it('verifies presence of all default status bar elements', async function () { const app = this.app as SpectronApplication; diff --git a/test/smoke/src/areas/workbench/data-loss.test.ts b/test/smoke/src/areas/workbench/data-loss.test.ts index 50d477f2803a7160d80ab4133a3f974aedd6fae7..2781d043ea42211188d4240885b4118f53390a44 100644 --- a/test/smoke/src/areas/workbench/data-loss.test.ts +++ b/test/smoke/src/areas/workbench/data-loss.test.ts @@ -7,10 +7,6 @@ import { SpectronApplication } from '../../application'; export function setup() { describe('Dataloss', () => { - before(function () { - this.app.suiteName = 'Dataloss'; - }); - it(`verifies that 'hot exit' works for dirty files`, async function () { const app = this.app as SpectronApplication; await app.workbench.editors.newUntitledFile(); diff --git a/test/smoke/src/areas/workbench/data-migration.test.ts b/test/smoke/src/areas/workbench/data-migration.test.ts index 3dc5a8e44d89933c7bcb94d882d4b45c5fdc1996..c48d216f80b7ed755f775789123ad8ae30d23648 100644 --- a/test/smoke/src/areas/workbench/data-migration.test.ts +++ b/test/smoke/src/areas/workbench/data-migration.test.ts @@ -28,7 +28,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await stableApp.start(); - stableApp.suiteName = 'Data Migration'; const textToType = 'Very dirty file'; @@ -46,7 +45,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await app.start(false); - app.suiteName = 'Data Migration'; assert.ok(await app.workbench.editors.waitForActiveTab('Untitled-1', true), `Untitled-1 tab is not present after migration.`); @@ -64,7 +62,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await stableApp.start(); - stableApp.suiteName = 'Data Migration'; const fileName = 'app.js'; const textPart = 'This is going to be an unsaved file'; @@ -84,7 +81,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await app.start(false); - app.suiteName = 'Data Migration'; assert.ok(await app.workbench.editors.waitForActiveTab(fileName), `dirty file tab is not present after migration.`); await app.workbench.editor.waitForEditorContents(fileName, c => c.indexOf(textPart) > -1); @@ -101,7 +97,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await stableApp.start(); - stableApp.suiteName = 'Data Migration'; const fileName1 = 'app.js', fileName2 = 'jsconfig.json', fileName3 = 'readme.md'; @@ -119,7 +114,6 @@ export function setup(userDataDir: string, createApp: ICreateAppFn) { } await app.start(false); - app.suiteName = 'Data Migration'; assert.ok(await app.workbench.editors.waitForTab(fileName1), `${fileName1} tab was not restored after migration.`); assert.ok(await app.workbench.editors.waitForTab(fileName2), `${fileName2} tab was not restored after migration.`); diff --git a/test/smoke/src/areas/workbench/localization.test.ts b/test/smoke/src/areas/workbench/localization.test.ts index a39722858e47071a3adad67b13c08fb11e8b0087..2a41c77ea202729d51f19166f4806371e4ef54f9 100644 --- a/test/smoke/src/areas/workbench/localization.test.ts +++ b/test/smoke/src/areas/workbench/localization.test.ts @@ -11,7 +11,6 @@ export function setup() { describe('Localization', () => { before(async function () { const app = this.app as SpectronApplication; - this.app.suiteName = 'Localization'; if (app.quality === Quality.Dev) { return;