fix e2e contacts tab selector
parent
c08b80c8b7
commit
60c71ac331
|
@ -31,13 +31,13 @@ describe('user profile - activity', function() {
|
|||
});
|
||||
|
||||
it('conctacts tab', async function() {
|
||||
$$('.tab').get(1).click();
|
||||
$$('.tab').get(4).click();
|
||||
|
||||
browser.waitForAngular();
|
||||
|
||||
utils.common.takeScreenshot('user-profile', 'current-user-contacts');
|
||||
|
||||
let contactsCount = await $$('.profile-contact-single').count();
|
||||
let contactsCount = await $$('.list-itemtype-user').count();
|
||||
|
||||
expect(contactsCount).to.be.above(0);
|
||||
});
|
||||
|
|
|
@ -21,7 +21,7 @@ describe('user profile - contacts', function() {
|
|||
});
|
||||
|
||||
it('conctacts tab', async function() {
|
||||
let contactsCount = await $$('.profile-contact-single').count();
|
||||
let contactsCount = await $$('.list-itemtype-user').count();
|
||||
|
||||
expect(contactsCount).to.be.above(0);
|
||||
});
|
||||
|
@ -41,7 +41,9 @@ describe('user profile - contacts', function() {
|
|||
});
|
||||
|
||||
it('conctacts tab', async function() {
|
||||
let contactsCount = await $$('.profile-contact-single').count();
|
||||
let contactsCount = await $$('.list-itemtype-user').count();
|
||||
|
||||
await browser.sleep(3000);
|
||||
|
||||
expect(contactsCount).to.be.above(0);
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@ var chaiAsPromised = require('chai-as-promised');
|
|||
chai.use(chaiAsPromised);
|
||||
var expect = chai.expect;
|
||||
|
||||
describe('user profilei - projects', function() {
|
||||
describe('user profile - projects', function() {
|
||||
describe('other user', function() {
|
||||
before(async function(){
|
||||
browser.get(browser.params.glob.host + '/profile/user7');
|
||||
|
@ -21,7 +21,7 @@ describe('user profilei - projects', function() {
|
|||
});
|
||||
|
||||
it('projects tab', async function() {
|
||||
let projectsCount = await $$('.project-list-single').count();
|
||||
let projectsCount = await $$('.list-itemtype-project').count();
|
||||
|
||||
expect(projectsCount).to.be.above(0);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue