Use valid URL in test
This commit is contained in:
parent
d5773b138b
commit
54c4cffa9a
|
@ -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,
|
||||
|
|
|
@ -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/'
|
||||
}]
|
||||
};
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue