custom e2e host
parent
72f8ed260b
commit
46122072f7
|
@ -7,6 +7,11 @@ var utils = require('./e2e/utils');
|
||||||
exports.config = {
|
exports.config = {
|
||||||
seleniumAddress: 'http://localhost:4444/wd/hub',
|
seleniumAddress: 'http://localhost:4444/wd/hub',
|
||||||
framework: 'mocha',
|
framework: 'mocha',
|
||||||
|
params: {
|
||||||
|
glob: {
|
||||||
|
host: 'http://localhost:9001/'
|
||||||
|
}
|
||||||
|
},
|
||||||
mochaOpts: {
|
mochaOpts: {
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
compilers: 'js:babel/register'
|
compilers: 'js:babel/register'
|
||||||
|
@ -26,7 +31,7 @@ exports.config = {
|
||||||
browser.browserName = cap.caps_.browserName;
|
browser.browserName = cap.caps_.browserName;
|
||||||
});
|
});
|
||||||
|
|
||||||
browser.get('http://localhost:9001/login');
|
browser.get(browser.params.glob.host + 'login');
|
||||||
|
|
||||||
var username = $('input[name="username"]');
|
var username = $('input[name="username"]');
|
||||||
username.sendKeys('admin');
|
username.sendKeys('admin');
|
||||||
|
@ -42,7 +47,7 @@ exports.config = {
|
||||||
return browser.driver.getCurrentUrl();
|
return browser.driver.getCurrentUrl();
|
||||||
})
|
})
|
||||||
.then(function(url) {
|
.then(function(url) {
|
||||||
return url === 'http://localhost:9001/';
|
return url === browser.params.glob.host;
|
||||||
});
|
});
|
||||||
}, 10000)
|
}, 10000)
|
||||||
.then(function() {
|
.then(function() {
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('auth', function() {
|
describe('auth', function() {
|
||||||
it('login', async function() {
|
it('login', async function() {
|
||||||
browser.get('http://localhost:9001/login');
|
browser.get(browser.params.glob.host + 'login');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ describe('auth', function() {
|
||||||
|
|
||||||
$('.submit-button').click();
|
$('.submit-button').click();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("user", function() {
|
describe("user", function() {
|
||||||
|
@ -30,7 +30,7 @@ describe('auth', function() {
|
||||||
|
|
||||||
describe("register", function() {
|
describe("register", function() {
|
||||||
it('screenshot', async function() {
|
it('screenshot', async function() {
|
||||||
browser.get('http://localhost:9001/register');
|
browser.get(browser.params.glob.host + 'register');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ describe('auth', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('register validation', function() {
|
it('register validation', function() {
|
||||||
browser.get('http://localhost:9001/register');
|
browser.get(browser.params.glob.host + 'register');
|
||||||
|
|
||||||
$('.submit-button').click();
|
$('.submit-button').click();
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ describe('auth', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('register ok', function() {
|
it('register ok', function() {
|
||||||
browser.get('http://localhost:9001/register');
|
browser.get(browser.params.glob.host + 'register');
|
||||||
|
|
||||||
user.username = "username-" + Math.random();
|
user.username = "username-" + Math.random();
|
||||||
user.fullname = "fullname-" + Math.random();
|
user.fullname = "fullname-" + Math.random();
|
||||||
|
@ -62,7 +62,7 @@ describe('auth', function() {
|
||||||
|
|
||||||
$('.submit-button').click();
|
$('.submit-button').click();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ describe('auth', function() {
|
||||||
beforeEach(async function() {
|
beforeEach(async function() {
|
||||||
await utils.common.login(user.username, user.password);
|
await utils.common.login(user.username, user.password);
|
||||||
|
|
||||||
browser.get('http://localhost:9001/user-settings/user-change-password');
|
browser.get(browser.params.glob.host + 'user-settings/user-change-password');
|
||||||
});
|
});
|
||||||
|
|
||||||
it("error", function() {
|
it("error", function() {
|
||||||
|
@ -96,7 +96,7 @@ describe('auth', function() {
|
||||||
|
|
||||||
describe("remember password", function() {
|
describe("remember password", function() {
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
browser.get('http://localhost:9001/forgot-password');
|
browser.get(browser.params.glob.host + 'forgot-password');
|
||||||
});
|
});
|
||||||
|
|
||||||
it ("screenshot", async function() {
|
it ("screenshot", async function() {
|
||||||
|
@ -133,13 +133,13 @@ describe('auth', function() {
|
||||||
browser.actions().mouseMove($('div[tg-dropdown-user]')).perform();
|
browser.actions().mouseMove($('div[tg-dropdown-user]')).perform();
|
||||||
$$('.dropdown-user li a').last().click();
|
$$('.dropdown-user li a').last().click();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/login');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'login');
|
||||||
});
|
});
|
||||||
|
|
||||||
it("delete account", async function() {
|
it("delete account", async function() {
|
||||||
await utils.common.login(user.username, user.password);
|
await utils.common.login(user.username, user.password);
|
||||||
|
|
||||||
browser.get('http://localhost:9001/user-settings/user-profile');
|
browser.get(browser.params.glob.host + 'user-settings/user-profile');
|
||||||
$('.delete-account').click();
|
$('.delete-account').click();
|
||||||
|
|
||||||
await utils.lightbox.open('.lightbox-delete-account');
|
await utils.lightbox.open('.lightbox-delete-account');
|
||||||
|
@ -149,7 +149,7 @@ describe('auth', function() {
|
||||||
$('#unsuscribe').click();
|
$('#unsuscribe').click();
|
||||||
$('.lightbox-delete-account .button-green').click();
|
$('.lightbox-delete-account .button-green').click();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/login');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'login');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('custom-fields', function() {
|
describe('custom-fields', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/project-values/custom-fields');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/project-values/custom-fields');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
utils.common.takeScreenshot('attributes', 'custom-fields');
|
utils.common.takeScreenshot('attributes', 'custom-fields');
|
||||||
|
@ -66,9 +66,11 @@ describe('custom-fields', function() {
|
||||||
|
|
||||||
customFieldsHelper.delete(typeIndex, 0);
|
customFieldsHelper.delete(typeIndex, 0);
|
||||||
|
|
||||||
let countCustomFields = customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
browser.wait(async function() {
|
||||||
|
let countCustomFields = await customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
||||||
|
|
||||||
expect(countCustomFields).to.be.eventually.equal(oldCountCustomFields - 1);
|
return countCustomFields === oldCountCustomFields - 1;
|
||||||
|
}, 4000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -122,9 +124,11 @@ describe('custom-fields', function() {
|
||||||
|
|
||||||
customFieldsHelper.delete(typeIndex, 0);
|
customFieldsHelper.delete(typeIndex, 0);
|
||||||
|
|
||||||
let countCustomFields = customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
browser.wait(async function() {
|
||||||
|
let countCustomFields = await customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
||||||
|
|
||||||
expect(countCustomFields).to.be.eventually.equal(oldCountCustomFields - 1);
|
return countCustomFields === oldCountCustomFields - 1;
|
||||||
|
}, 4000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -178,9 +182,11 @@ describe('custom-fields', function() {
|
||||||
|
|
||||||
customFieldsHelper.delete(typeIndex, 0);
|
customFieldsHelper.delete(typeIndex, 0);
|
||||||
|
|
||||||
let countCustomFields = customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
browser.wait(async function() {
|
||||||
|
let countCustomFields = await customFieldsHelper.getCustomFiledsByType(typeIndex).count();
|
||||||
|
|
||||||
expect(countCustomFields).to.be.eventually.equal(oldCountCustomFields - 1);
|
return countCustomFields === oldCountCustomFields - 1;
|
||||||
|
}, 4000);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('attributes - points', function() {
|
describe('attributes - points', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-values/points');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-values/points');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('attributes - priorities', function() {
|
describe('attributes - priorities', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-values/priorities');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-values/priorities');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('attributes - severities', function() {
|
describe('attributes - severities', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-values/severities');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-values/severities');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('attributes - status', function() {
|
describe('attributes - status', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-values/status');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-values/status');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('attributes - types', function() {
|
describe('attributes - types', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-values/types');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-values/types');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - bitbucket', function() {
|
describe('admin - bitbucket', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/third-parties/bitbucket');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/third-parties/bitbucket');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - github', function() {
|
describe('admin - github', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/third-parties/github');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/third-parties/github');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - gitlab', function() {
|
describe('admin - gitlab', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/third-parties/gitlab');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/third-parties/gitlab');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - webhooks', function() {
|
describe('admin - webhooks', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/third-parties/webhooks');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/third-parties/webhooks');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - members', function() {
|
describe('admin - members', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/memberships');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/memberships');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('admin - roles', function() {
|
describe('admin - roles', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/roles');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/roles');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('create-delete project', function() {
|
describe('create-delete project', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/projects/');
|
browser.get(browser.params.glob.host + 'projects/');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
@ -62,6 +62,6 @@ describe('create-delete project', function() {
|
||||||
|
|
||||||
let url = await browser.getCurrentUrl();
|
let url = await browser.getCurrentUrl();
|
||||||
|
|
||||||
expect(url).to.be.equal('http://localhost:9001/');
|
expect(url).to.be.equal(browser.params.glob.host);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('project default values', function() {
|
describe('project default values', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-profile/default-values');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-profile/default-values');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('modules', function() {
|
describe('modules', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-profile/modules');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-profile/modules');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('project detail', function() {
|
describe('project detail', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-profile/details');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-profile/details');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('reports', function() {
|
describe('reports', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/admin/project-profile/reports');
|
browser.get(browser.params.glob.host + 'project/project-0/admin/project-profile/reports');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('backlog', function() {
|
describe('backlog', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/backlog');
|
browser.get(browser.params.glob.host + 'project/project-3/backlog');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
utils.common.takeScreenshot('backlog', 'backlog');
|
utils.common.takeScreenshot('backlog', 'backlog');
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('home', function() {
|
describe('home', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/');
|
browser.get(browser.params.glob.host);
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
utils.common.takeScreenshot("home", "dashboard");
|
utils.common.takeScreenshot("home", "dashboard");
|
||||||
|
@ -28,7 +28,7 @@ describe('home', function() {
|
||||||
|
|
||||||
describe('projects list', function() {
|
describe('projects list', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/projects/');
|
browser.get(browser.params.glob.host + 'projects/');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
utils.common.takeScreenshot("home", "projects");
|
utils.common.takeScreenshot("home", "projects");
|
||||||
|
@ -51,7 +51,7 @@ describe('home', function() {
|
||||||
var draggedElementText;
|
var draggedElementText;
|
||||||
|
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/projects/');
|
browser.get(browser.params.glob.host + 'projects/');
|
||||||
|
|
||||||
let dragableElements = element.all(by.css('.project-list-single'));
|
let dragableElements = element.all(by.css('.project-list-single'));
|
||||||
let dragElement = dragableElements.get(3);
|
let dragElement = dragableElements.get(3);
|
||||||
|
|
|
@ -10,7 +10,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('issues list', function() {
|
describe('issues list', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/issues');
|
browser.get(browser.params.glob.host + 'project/project-3/issues');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
utils.common.takeScreenshot('issues', 'issues');
|
utils.common.takeScreenshot('issues', 'issues');
|
||||||
|
|
|
@ -7,7 +7,7 @@ chai.use(chaiAsPromised);
|
||||||
var expect = chai.expect;
|
var expect = chai.expect;
|
||||||
|
|
||||||
describe('Issue detail', async function(){
|
describe('Issue detail', async function(){
|
||||||
let issueUrl = 'http://localhost:9001/project/project-3/issue/92';
|
let issueUrl = browser.params.glob.host + 'project/project-3/issue/92';
|
||||||
|
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get(issueUrl);
|
browser.get(issueUrl);
|
||||||
|
|
|
@ -11,7 +11,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('kanban', function() {
|
describe('kanban', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-0/kanban');
|
browser.get(browser.params.glob.host + 'project/project-0/kanban');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('project home', function() {
|
describe('project home', function() {
|
||||||
beforeEach(async function() {
|
beforeEach(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-1/');
|
browser.get(browser.params.glob.host + 'project/project-1/');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('search page', function() {
|
describe('search page', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/');
|
browser.get(browser.params.glob.host + 'project/project-0/');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
@ -32,7 +32,7 @@ describe('search page', function() {
|
||||||
|
|
||||||
utils.common.takeScreenshot('search', 'usertories');
|
utils.common.takeScreenshot('search', 'usertories');
|
||||||
|
|
||||||
expect(currentUrl).to.be.equal('http://localhost:9001/project/project-0/search?text=create');
|
expect(currentUrl).to.be.equal(browser.params.glob.host + 'project/project-0/search?text=create');
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('tabs', function() {
|
describe('tabs', function() {
|
||||||
|
|
|
@ -11,7 +11,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('taskboard', function() {
|
describe('taskboard', function() {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
browser.get('http://localhost:9001/project/project-0/backlog');
|
browser.get(browser.params.glob.host + 'project/project-0/backlog');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ chai.use(chaiAsPromised);
|
||||||
var expect = chai.expect;
|
var expect = chai.expect;
|
||||||
|
|
||||||
describe('Task detail', function(){
|
describe('Task detail', function(){
|
||||||
let taskUrl = 'http://localhost:9001/project/project-3/task/7';
|
let taskUrl = browser.params.glob.host + 'project/project-3/task/7';
|
||||||
|
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get(taskUrl);
|
browser.get(taskUrl);
|
||||||
|
|
|
@ -9,7 +9,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('leaving project', function(){
|
describe('leaving project', function(){
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-4/team');
|
browser.get(browser.params.glob.host + 'project/project-4/team');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ describe('leaving project', function(){
|
||||||
|
|
||||||
describe('team', function() {
|
describe('team', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-5/team');
|
browser.get(browser.params.glob.host + 'project/project-5/team');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -8,14 +8,14 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('change password', function() {
|
describe('change password', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/user-settings/user-change-password');
|
browser.get(browser.params.glob.host + 'user-settings/user-change-password');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
utils.common.takeScreenshot('edit-user-profile', 'change-password');
|
utils.common.takeScreenshot('edit-user-profile', 'change-password');
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async function() {
|
beforeEach(async function() {
|
||||||
browser.get('http://localhost:9001/user-settings/user-change-password');
|
browser.get(browser.params.glob.host + 'user-settings/user-change-password');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
@ -51,7 +51,7 @@ describe('change password', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
after(async function() {
|
after(async function() {
|
||||||
browser.get('http://localhost:9001/user-settings/user-change-password');
|
browser.get(browser.params.glob.host + 'user-settings/user-change-password');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
//restore
|
//restore
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('edit user profile', function() {
|
describe('edit user profile', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/user-settings/user-profile');
|
browser.get(browser.params.glob.host + 'user-settings/user-profile');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('email notification', function() {
|
describe('email notification', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/user-settings/mail-notifications');
|
browser.get(browser.params.glob.host + 'user-settings/mail-notifications');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('feedback', function() {
|
describe('feedback', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/user-settings/mail-notifications');
|
browser.get(browser.params.glob.host + 'user-settings/mail-notifications');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ var expect = chai.expect;
|
||||||
describe('user profile', function() {
|
describe('user profile', function() {
|
||||||
describe('current user', function() {
|
describe('current user', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/profile');
|
browser.get(browser.params.glob.host + 'profile');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ describe('user profile', function() {
|
||||||
|
|
||||||
describe('other user', function() {
|
describe('other user', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/profile/user7');
|
browser.get(browser.params.glob.host + 'profile/user7');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ chai.use(chaiAsPromised);
|
||||||
var expect = chai.expect;
|
var expect = chai.expect;
|
||||||
|
|
||||||
describe('User story detail', function(){
|
describe('User story detail', function(){
|
||||||
let usUrl = 'http://localhost:9001/project/project-3/us/81';
|
let usUrl = browser.params.glob.host + 'project/project-3/us/81';
|
||||||
|
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get(usUrl);
|
browser.get(usUrl);
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe('wiki', function() {
|
||||||
let currentWiki = {};
|
let currentWiki = {};
|
||||||
|
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-0/wiki/home');
|
browser.get(browser.params.glob.host + 'project/project-0/wiki/home');
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ describe('wiki', function() {
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
await utils.common.takeScreenshot("wiki", "new-link-created-with-empty-wiki-page");
|
await utils.common.takeScreenshot("wiki", "new-link-created-with-empty-wiki-page");
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/project/project-0/wiki/' + currentWiki.slug);
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'project/project-0/wiki/' + currentWiki.slug);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('remove link', async function() {
|
it('remove link', async function() {
|
||||||
|
@ -73,7 +73,7 @@ describe('wiki', function() {
|
||||||
it('delete', async function() {
|
it('delete', async function() {
|
||||||
await wikiHelper.editor().delete();
|
await wikiHelper.editor().delete();
|
||||||
|
|
||||||
expect(browser.getCurrentUrl()).to.be.eventually.equal('http://localhost:9001/project/project-0/wiki/home');
|
expect(browser.getCurrentUrl()).to.be.eventually.equal(browser.params.glob.host + 'project/project-0/wiki/home');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Custom keyboard actions', async function(){
|
it('Custom keyboard actions', async function(){
|
||||||
|
|
|
@ -8,7 +8,7 @@ var expect = chai.expect;
|
||||||
|
|
||||||
describe('Public', async function(){
|
describe('Public', async function(){
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/project-profile/details');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/project-profile/details');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('home', function() {
|
it('home', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/');
|
browser.get(browser.params.glob.host + 'project/project-3/');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('backlog', function() {
|
it('backlog', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/backlog');
|
browser.get(browser.params.glob.host + 'project/project-3/backlog');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('taskboard', function() {
|
it('taskboard', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/backlog');
|
browser.get(browser.params.glob.host + 'project/project-3/backlog');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('kanban', function() {
|
it('kanban', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/kanban');
|
browser.get(browser.params.glob.host + 'project/project-3/kanban');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('us detail', function() {
|
it('us detail', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/us/81');
|
browser.get(browser.params.glob.host + 'project/project-3/us/81');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('issue detail', function() {
|
it('issue detail', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/issue/95');
|
browser.get(browser.params.glob.host + 'project/project-3/issue/95');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('task detail', function() {
|
it('task detail', function() {
|
||||||
browser.get('http://localhost:9001/project/project-3/task/2');
|
browser.get(browser.params.glob.host + 'project/project-3/task/2');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ describe('Public', async function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
it('team', function() {
|
it('team', function() {
|
||||||
browser.get('http://localhost:9001/project/project-5/team');
|
browser.get(browser.params.glob.host + 'project/project-5/team');
|
||||||
|
|
||||||
utils.common.waitLoader();
|
utils.common.waitLoader();
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ common.closeCookies = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
common.login = function(username, password) {
|
common.login = function(username, password) {
|
||||||
browser.get('http://localhost:9001/login');
|
browser.get(browser.params.glob.host + 'login');
|
||||||
|
|
||||||
$('input[name="username"]').sendKeys(username);
|
$('input[name="username"]').sendKeys(username);
|
||||||
$('input[name="password"]').sendKeys(password);
|
$('input[name="password"]').sendKeys(password);
|
||||||
|
@ -100,7 +100,7 @@ common.login = function(username, password) {
|
||||||
return browser.driver.wait(async function() {
|
return browser.driver.wait(async function() {
|
||||||
let url = await browser.driver.getCurrentUrl();
|
let url = await browser.driver.getCurrentUrl();
|
||||||
|
|
||||||
return url === 'http://localhost:9001/';
|
return url === browser.params.glob.host;
|
||||||
}, 10000);
|
}, 10000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -116,12 +116,12 @@ common.logout = function() {
|
||||||
return browser.driver.wait(async function() {
|
return browser.driver.wait(async function() {
|
||||||
let url = await browser.driver.getCurrentUrl();
|
let url = await browser.driver.getCurrentUrl();
|
||||||
|
|
||||||
return url === 'http://localhost:9001/login';
|
return url === browser.params.glob.host + 'login';
|
||||||
}, 10000);
|
}, 10000);
|
||||||
};
|
};
|
||||||
|
|
||||||
common.prepare = function() {
|
common.prepare = function() {
|
||||||
browser.get('http://localhost:9001/');
|
browser.get(browser.params.glob.host);
|
||||||
|
|
||||||
return common.closeCookies();
|
return common.closeCookies();
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ common.clear = function(elem, length) {
|
||||||
};
|
};
|
||||||
|
|
||||||
common.goHome = async function() {
|
common.goHome = async function() {
|
||||||
browser.get('http://localhost:9001');
|
browser.get(browser.params.glob.host);
|
||||||
|
|
||||||
await common.waitLoader();
|
await common.waitLoader();
|
||||||
};
|
};
|
||||||
|
|
|
@ -216,7 +216,7 @@ helper.customFields = function(typeIndex) {
|
||||||
before(async function() {
|
before(async function() {
|
||||||
let url = await browser.getCurrentUrl();
|
let url = await browser.getCurrentUrl();
|
||||||
|
|
||||||
browser.get('http://localhost:9001/project/project-3/admin/project-values/custom-fields');
|
browser.get(browser.params.glob.host + 'project/project-3/admin/project-values/custom-fields');
|
||||||
|
|
||||||
commonUtil.waitLoader();
|
commonUtil.waitLoader();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue