fix leaving project warning close link
parent
6fbd3a7f06
commit
56cb222fd6
|
@ -1,4 +1,5 @@
|
|||
svg.close.icon.icon-close(href="", title="{{'COMMON.CLOSE' | translate}}")
|
||||
a.close(href="", title="{{'COMMON.CLOSE' | translate}}")
|
||||
svg.icon.icon-close(title="{{'COMMON.CLOSE' | translate}}")
|
||||
use(xlink:href="#icon-close")
|
||||
div.content
|
||||
svg.icon.icon-exclamation
|
||||
|
|
|
@ -40,8 +40,12 @@ describe('leaving project owner', function(){
|
|||
|
||||
let lb = teamHelper.leavingProjectWarningLb();
|
||||
|
||||
await utils.lightbox.exit(lb);
|
||||
await utils.lightbox.close(lb);
|
||||
await utils.lightbox.open(lb);
|
||||
|
||||
utils.lightbox.exit(lb);
|
||||
|
||||
let isPresent = await lb.isPresent();
|
||||
expect(isPresent).to.be.false;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -4,13 +4,11 @@ var lightbox = module.exports;
|
|||
var transition = 300;
|
||||
|
||||
lightbox.exit = function(el) {
|
||||
var deferred = protractor.promise.defer();
|
||||
|
||||
if (typeof el === 'string' || el instanceof String) {
|
||||
el = $(el);
|
||||
}
|
||||
|
||||
el.$('.icon-close').click();
|
||||
el.$('.close').click();
|
||||
};
|
||||
|
||||
lightbox.open = async function(el) {
|
||||
|
|
Loading…
Reference in New Issue