Use valid URL in test
This commit is contained in:
@@ -18,7 +18,7 @@ const electronBinaryPath = (() => {
|
|||||||
const userDataDir = path.join(sourceRootDir, 'test/testUserData/');
|
const userDataDir = path.join(sourceRootDir, 'test/testUserData/');
|
||||||
const configFilePath = path.join(userDataDir, 'config.json');
|
const configFilePath = path.join(userDataDir, 'config.json');
|
||||||
const boundsInfoPath = path.join(userDataDir, 'bounds-info.json');
|
const boundsInfoPath = path.join(userDataDir, 'bounds-info.json');
|
||||||
const mattermostURL = 'http://example.com/team';
|
const mattermostURL = 'http://example.com/';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
sourceRootDir,
|
sourceRootDir,
|
||||||
|
@@ -12,11 +12,11 @@ describe('browser/index.html', function desc() {
|
|||||||
const config = {
|
const config = {
|
||||||
version: 1,
|
version: 1,
|
||||||
teams: [{
|
teams: [{
|
||||||
name: 'example_1',
|
name: 'example',
|
||||||
url: env.mattermostURL + '1'
|
url: env.mattermostURL
|
||||||
}, {
|
}, {
|
||||||
name: 'example_2',
|
name: 'github',
|
||||||
url: env.mattermostURL + '2'
|
url: 'https://github.com/'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -10,11 +10,11 @@ describe('browser/settings.html', function desc() {
|
|||||||
const config = {
|
const config = {
|
||||||
version: 1,
|
version: 1,
|
||||||
teams: [{
|
teams: [{
|
||||||
name: 'example_1',
|
name: 'example',
|
||||||
url: env.mattermostURL
|
url: env.mattermostURL
|
||||||
}, {
|
}, {
|
||||||
name: 'example_2',
|
name: 'github',
|
||||||
url: env.mattermostURL
|
url: 'https://github.com/'
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ describe('browser/settings.html', function desc() {
|
|||||||
env.addClientCommands(this.app.client);
|
env.addClientCommands(this.app.client);
|
||||||
return this.app.client.
|
return this.app.client.
|
||||||
loadSettingsPage().
|
loadSettingsPage().
|
||||||
click('h4=example_1').
|
click('h4=example').
|
||||||
pause(100).
|
pause(100).
|
||||||
waitUntilWindowLoaded().
|
waitUntilWindowLoaded().
|
||||||
getUrl().then((url) => {
|
getUrl().then((url) => {
|
||||||
@@ -108,7 +108,7 @@ describe('browser/settings.html', function desc() {
|
|||||||
}).
|
}).
|
||||||
|
|
||||||
loadSettingsPage().
|
loadSettingsPage().
|
||||||
click('h4=example_2').
|
click('h4=github').
|
||||||
pause(100).
|
pause(100).
|
||||||
waitUntilWindowLoaded().
|
waitUntilWindowLoaded().
|
||||||
getUrl().then((url) => {
|
getUrl().then((url) => {
|
||||||
|
Reference in New Issue
Block a user