Fixing watchers e2e tests

stable
Alejandro Alonso 2015-10-28 15:05:15 +01:00
parent bcfaba4cff
commit b8173d129f
2 changed files with 8 additions and 8 deletions

View File

@ -88,7 +88,7 @@ helper.tags = function() {
};
helper.statusSelector = function() {
let el = $('.us-status');
let el = $('.ticket-data');
let obj = {
el: el,
@ -102,7 +102,7 @@ helper.statusSelector = function() {
return el.$('.status-status').getInnerHtml();
},
getGeneralStatus: async function(){
return el.$('.us-detail-status').getInnerHtml();
return el.$('.detail-status').getInnerHtml();
},
};
@ -376,7 +376,7 @@ helper.attachment = function() {
helper.watchers = function() {
let el = $('section[tg-watchers]');
let el = $('.ticket-track-buttons .ticket-watchers');
let obj = {
el: el,
@ -386,10 +386,10 @@ helper.watchers = function() {
},
getWatchersUserNames: async function() {
return el.$$('.watcher-name span').getText();
return el.$$('.user-list-name span').getText();
},
removeAllWathchers: async function() {
removeAllWatchers: async function() {
let totalWatchers = await await el.$$('.icon-delete').count();
let htmlChanges = htmlChanges = await utils.common.outerHtmlChanges(el);
@ -421,7 +421,7 @@ helper.watchersLightbox = function() {
await browser.waitForAngular();
},
getFirstName: function() {
return el.$$('div[data-user-id] .watcher-name').first().getText();
return el.$$('.lightbox .ticket-watchers div[data-user-id]').first().getText();
}
};

View File

@ -190,7 +190,7 @@ helper.deleteTesting = async function() {
helper.watchersTesting = async function() {
let watchersHelper = detailHelper.watchers();
await watchersHelper.removeAllWathchers();
await watchersHelper.removeAllWatchers();
let watchersLightboxHelper = detailHelper.watchersLightbox();
let userNames = await watchersHelper.getWatchersUserNames();
@ -209,7 +209,7 @@ helper.watchersTesting = async function() {
expect(newUserNames.join(',')).to.be.equal(userNames.join(','));
//Clear watchers
await watchersHelper.removeAllWathchers();
await watchersHelper.removeAllWatchers();
newUserNames = await watchersHelper.getWatchersUserNames();
expect(newUserNames.join()).to.be.equal('');
}