Use valid URL in test

This commit is contained in:
Yuya Ochiai 2018-01-19 20:50:00 +09:00
parent d5773b138b
commit 54c4cffa9a
3 changed files with 10 additions and 10 deletions

View file

@ -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,

View file

@ -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/'
}]
};

View file

@ -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) => {