Fixing userProfile e2e tests
parent
3ec18f4781
commit
1bbe86ef16
|
@ -40,7 +40,7 @@ describe('user profile - votes', function() {
|
|||
expect(hasMoreItems).to.be.equal(true);
|
||||
});
|
||||
|
||||
it('votes tab - filter user stories', async function() {
|
||||
it('votes tab - filter epics', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(1).click();
|
||||
|
@ -52,7 +52,7 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter tasks', async function() {
|
||||
it('votes tab - filter user stories', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(2).click();
|
||||
|
@ -64,7 +64,7 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter issues', async function() {
|
||||
it('votes tab - filter tasks', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(3).click();
|
||||
|
@ -76,6 +76,18 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter issues', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(4).click();
|
||||
|
||||
await browser.waitForAngular();
|
||||
|
||||
let filteredItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter by query', async function() {
|
||||
let allItems = await $$('div[infinite-scroll] > div').count();
|
||||
|
||||
|
@ -130,7 +142,7 @@ describe('user profile - votes', function() {
|
|||
expect(hasMoreItems).to.be.equal(true);
|
||||
});
|
||||
|
||||
it('votes tab - filter user stories', async function() {
|
||||
it('votes tab - filter epics', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(1).click();
|
||||
|
@ -142,7 +154,7 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter tasks', async function() {
|
||||
it('votes tab - filter user stories', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(2).click();
|
||||
|
@ -154,7 +166,7 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter issues', async function() {
|
||||
it('votes tab - filter tasks', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(3).click();
|
||||
|
@ -166,6 +178,18 @@ describe('user profile - votes', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter issues', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(4).click();
|
||||
|
||||
await browser.waitForAngular();
|
||||
|
||||
let filteredItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('votes tab - filter by query', async function() {
|
||||
let allItems = await $$('div[infinite-scroll] > div').count();
|
||||
|
||||
|
|
|
@ -53,7 +53,8 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter user stories', async function() {
|
||||
|
||||
it('watched tab - filter epics', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(2).click();
|
||||
|
@ -65,7 +66,7 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter tasks', async function() {
|
||||
it('watched tab - filter user stories', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(3).click();
|
||||
|
@ -77,7 +78,7 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter issues', async function() {
|
||||
it('watched tab - filter tasks', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(4).click();
|
||||
|
@ -89,6 +90,18 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter issues', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(5).click();
|
||||
|
||||
await browser.waitForAngular();
|
||||
|
||||
let filteredItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter by query', async function() {
|
||||
let allItems = await $$('div[infinite-scroll] > div').count();
|
||||
|
||||
|
@ -155,7 +168,7 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter user stories', async function() {
|
||||
it('watched tab - filter epics', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(2).click();
|
||||
|
@ -167,7 +180,7 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter tasks', async function() {
|
||||
it('watched tab - filter user stories', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(3).click();
|
||||
|
@ -179,7 +192,7 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter issues', async function() {
|
||||
it('watched tab - filter tasks', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(4).click();
|
||||
|
@ -191,6 +204,18 @@ describe('user profile - watched', function() {
|
|||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter issues', async function() {
|
||||
let allItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
await $$('div.filters > a').get(5).click();
|
||||
|
||||
await browser.waitForAngular();
|
||||
|
||||
let filteredItems = await $('div[infinite-scroll]').getInnerHtml();
|
||||
|
||||
expect(allItems).to.be.not.equal(filteredItems);
|
||||
});
|
||||
|
||||
it('watched tab - filter by query', async function() {
|
||||
let allItems = await $$('div[infinite-scroll] > div').count();
|
||||
|
||||
|
|
Loading…
Reference in New Issue