Adding task-detail-helper
parent
4f35f17ada
commit
d4ecc6bd69
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue