diff --git a/test/modules/environment.js b/test/modules/environment.js index e91ade43..244a2315 100644 --- a/test/modules/environment.js +++ b/test/modules/environment.js @@ -18,7 +18,7 @@ const electronBinaryPath = (() => { const userDataDir = path.join(sourceRootDir, 'test/testUserData/'); const configFilePath = path.join(userDataDir, 'config.json'); const boundsInfoPath = path.join(userDataDir, 'bounds-info.json'); -const mattermostURL = 'http://example.com/team'; +const mattermostURL = 'http://example.com/'; module.exports = { sourceRootDir, diff --git a/test/specs/browser/index_test.js b/test/specs/browser/index_test.js index 71be4716..e130d565 100644 --- a/test/specs/browser/index_test.js +++ b/test/specs/browser/index_test.js @@ -12,11 +12,11 @@ describe('browser/index.html', function desc() { const config = { version: 1, teams: [{ - name: 'example_1', - url: env.mattermostURL + '1' + name: 'example', + url: env.mattermostURL }, { - name: 'example_2', - url: env.mattermostURL + '2' + name: 'github', + url: 'https://github.com/' }] }; diff --git a/test/specs/browser/settings_test.js b/test/specs/browser/settings_test.js index 93f026a3..1ae7971f 100644 --- a/test/specs/browser/settings_test.js +++ b/test/specs/browser/settings_test.js @@ -10,11 +10,11 @@ describe('browser/settings.html', function desc() { const config = { version: 1, teams: [{ - name: 'example_1', + name: 'example', url: env.mattermostURL }, { - name: 'example_2', - url: env.mattermostURL + name: 'github', + url: 'https://github.com/' }] }; @@ -94,7 +94,7 @@ describe('browser/settings.html', function desc() { env.addClientCommands(this.app.client); return this.app.client. loadSettingsPage(). - click('h4=example_1'). + click('h4=example'). pause(100). waitUntilWindowLoaded(). getUrl().then((url) => { @@ -108,7 +108,7 @@ describe('browser/settings.html', function desc() { }). loadSettingsPage(). - click('h4=example_2'). + click('h4=github'). pause(100). waitUntilWindowLoaded(). getUrl().then((url) => {