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