fix leaving project warning close link

stable
Juanfran 2016-03-23 12:30:11 +01:00
parent 6fbd3a7f06
commit 56cb222fd6
3 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,6 @@
svg.close.icon.icon-close(href="", title="{{'COMMON.CLOSE' | translate}}")
use(xlink:href="#icon-close")
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
use(xlink:href="#icon-exclamation")

View File

@ -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;
});
});

View File

@ -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) {