Adding task-detail-helper

stable
Alejandro Alonso 2015-07-28 14:37:00 +02:00 committed by Juanfran
parent 4f35f17ada
commit d4ecc6bd69
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
var utils = require('../utils');
var helper = module.exports;
helper.iocaine = function() {
let el = $('tg-task-is-iocaine-button fieldset');
let obj = {
el: el,
togleIocaineStatus: async function(){
await el.$("label").click();
await browser.waitForAngular();
},
isIocaine: async function() {
let classes = await el.$("label").getAttribute('class');
return classes.includes("active");
}
};
return obj;
};