detail url e2e test
parent
2b395ace87
commit
8c2a1eea4a
|
@ -7,19 +7,13 @@ chai.use(chaiAsPromised);
|
|||
var expect = chai.expect;
|
||||
|
||||
describe('Issue detail', async function(){
|
||||
let issuesUrl = "";
|
||||
let issueUrl = 'http://localhost:9001/project/project-3/issue/92';
|
||||
|
||||
before(async function(){
|
||||
await utils.common.goHome();
|
||||
await utils.common.goToFirstProject();
|
||||
|
||||
await utils.common.goToIssues();
|
||||
|
||||
issuesUrl = await browser.getCurrentUrl();
|
||||
|
||||
await utils.common.goToFirstIssue();
|
||||
browser.get(issueUrl);
|
||||
await utils.common.waitLoader();
|
||||
});
|
||||
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("issues", "detail");
|
||||
});
|
||||
|
@ -50,6 +44,6 @@ describe('Issue detail', async function(){
|
|||
|
||||
it('redirected', async function (){
|
||||
let url = await browser.getCurrentUrl();
|
||||
expect(url.endsWith(issuesUrl)).to.be.true;
|
||||
expect(url).not.to.be.equal(issueUrl);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -8,15 +8,11 @@ chai.use(chaiAsPromised);
|
|||
var expect = chai.expect;
|
||||
|
||||
describe('Task detail', function(){
|
||||
let sprintUrl = "";
|
||||
let taskUrl = 'http://localhost:9001/project/project-3/task/7';
|
||||
|
||||
before(async function(){
|
||||
await utils.common.goHome();
|
||||
await utils.common.goToFirstProject();
|
||||
await utils.common.goToBacklog();
|
||||
await utils.common.goToFirstSprint();
|
||||
sprintUrl = await browser.getCurrentUrl();
|
||||
await utils.common.goToFirstTask();
|
||||
browser.get(taskUrl);
|
||||
await utils.common.waitLoader();
|
||||
});
|
||||
|
||||
it('screenshot', async function() {
|
||||
|
@ -53,7 +49,7 @@ describe('Task detail', function(){
|
|||
|
||||
it('block', utils.detail.blockTesting);
|
||||
|
||||
it('attachments', utils.detail.attachmentTesting)
|
||||
it('attachments', utils.detail.attachmentTesting);
|
||||
|
||||
it('screenshot', async function() {
|
||||
await utils.common.takeScreenshot("tasks", "detail updated");
|
||||
|
@ -63,7 +59,7 @@ describe('Task detail', function(){
|
|||
|
||||
it('redirected', async function (){
|
||||
let url = await browser.getCurrentUrl();
|
||||
expect(url.endsWith(sprintUrl)).to.be.true;
|
||||
expect(url).not.to.be.equal(taskUrl);
|
||||
});
|
||||
|
||||
})
|
||||
|
|
|
@ -8,13 +8,11 @@ chai.use(chaiAsPromised);
|
|||
var expect = chai.expect;
|
||||
|
||||
describe('User story detail', function(){
|
||||
let backlogUrl = "";
|
||||
let usUrl = 'http://localhost:9001/project/project-3/us/81';
|
||||
|
||||
before(async function(){
|
||||
await utils.common.goHome();
|
||||
await utils.common.goToFirstProject();
|
||||
await utils.common.goToBacklog();
|
||||
backlogUrl = await browser.getCurrentUrl();
|
||||
await utils.common.goToFirstUserStory();
|
||||
browser.get(usUrl);
|
||||
await utils.common.waitLoader();
|
||||
});
|
||||
|
||||
it('screenshot', async function() {
|
||||
|
@ -77,6 +75,6 @@ describe('User story detail', function(){
|
|||
|
||||
it('redirected', async function (){
|
||||
let url = await browser.getCurrentUrl();
|
||||
expect(url.endsWith(backlogUrl+"?no-milestone=1")).to.be.true;
|
||||
expect(url).not.to.be.equal(usUrl);
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue