Fixing watchers e2e tests
parent
bcfaba4cff
commit
b8173d129f
|
@ -88,7 +88,7 @@ helper.tags = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
helper.statusSelector = function() {
|
helper.statusSelector = function() {
|
||||||
let el = $('.us-status');
|
let el = $('.ticket-data');
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
el: el,
|
el: el,
|
||||||
|
@ -102,7 +102,7 @@ helper.statusSelector = function() {
|
||||||
return el.$('.status-status').getInnerHtml();
|
return el.$('.status-status').getInnerHtml();
|
||||||
},
|
},
|
||||||
getGeneralStatus: async function(){
|
getGeneralStatus: async function(){
|
||||||
return el.$('.us-detail-status').getInnerHtml();
|
return el.$('.detail-status').getInnerHtml();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -376,7 +376,7 @@ helper.attachment = function() {
|
||||||
|
|
||||||
|
|
||||||
helper.watchers = function() {
|
helper.watchers = function() {
|
||||||
let el = $('section[tg-watchers]');
|
let el = $('.ticket-track-buttons .ticket-watchers');
|
||||||
|
|
||||||
let obj = {
|
let obj = {
|
||||||
el: el,
|
el: el,
|
||||||
|
@ -386,10 +386,10 @@ helper.watchers = function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
getWatchersUserNames: async 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 totalWatchers = await await el.$$('.icon-delete').count();
|
||||||
|
|
||||||
let htmlChanges = htmlChanges = await utils.common.outerHtmlChanges(el);
|
let htmlChanges = htmlChanges = await utils.common.outerHtmlChanges(el);
|
||||||
|
@ -421,7 +421,7 @@ helper.watchersLightbox = function() {
|
||||||
await browser.waitForAngular();
|
await browser.waitForAngular();
|
||||||
},
|
},
|
||||||
getFirstName: function() {
|
getFirstName: function() {
|
||||||
return el.$$('div[data-user-id] .watcher-name').first().getText();
|
return el.$$('.lightbox .ticket-watchers div[data-user-id]').first().getText();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -190,7 +190,7 @@ helper.deleteTesting = async function() {
|
||||||
|
|
||||||
helper.watchersTesting = async function() {
|
helper.watchersTesting = async function() {
|
||||||
let watchersHelper = detailHelper.watchers();
|
let watchersHelper = detailHelper.watchers();
|
||||||
await watchersHelper.removeAllWathchers();
|
await watchersHelper.removeAllWatchers();
|
||||||
|
|
||||||
let watchersLightboxHelper = detailHelper.watchersLightbox();
|
let watchersLightboxHelper = detailHelper.watchersLightbox();
|
||||||
let userNames = await watchersHelper.getWatchersUserNames();
|
let userNames = await watchersHelper.getWatchersUserNames();
|
||||||
|
@ -209,7 +209,7 @@ helper.watchersTesting = async function() {
|
||||||
expect(newUserNames.join(',')).to.be.equal(userNames.join(','));
|
expect(newUserNames.join(',')).to.be.equal(userNames.join(','));
|
||||||
|
|
||||||
//Clear watchers
|
//Clear watchers
|
||||||
await watchersHelper.removeAllWathchers();
|
await watchersHelper.removeAllWatchers();
|
||||||
newUserNames = await watchersHelper.getWatchersUserNames();
|
newUserNames = await watchersHelper.getWatchersUserNames();
|
||||||
expect(newUserNames.join()).to.be.equal('');
|
expect(newUserNames.join()).to.be.equal('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue