mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-06 00:11:50 -05:00
Combine test directories
This commit is contained in:
26
awx/ui/test/e2e/objects/sections/dynamicSection.js
Normal file
26
awx/ui/test/e2e/objects/sections/dynamicSection.js
Normal 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;
|
||||
Reference in New Issue
Block a user