Combine test directories

This commit is contained in:
gconsidine
2017-10-10 16:24:29 -04:00
parent c0996f5fb1
commit 8b6cc0e323
89 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
const dynamicSection = {
selector: '.',
commands: [{
create({ name, locateStrategy, selector, elements, sections, commands }) {
let Section = this.constructor;
let options = Object.assign(Object.create(this), {
name,
locateStrategy,
elements,
selector,
sections,
commands
});
options.elements.self = {
locateStrategy: 'xpath',
selector: '.'
};
return new Section(options);
}
}]
};
module.exports = dynamicSection;