Prettify codebase

This commit is contained in:
2020-06-25 23:31:51 +02:00
parent 236ab22e12
commit 818382bd13
17 changed files with 102 additions and 94 deletions

View File

@@ -10,38 +10,38 @@
*/
module.exports = {
url: "/",
url: '/',
commands: [],
// A page object can have elements
elements: {
appContainer: "#app"
appContainer: '#app'
},
// Or a page objects can also have sections
sections: {
app: {
selector: "#app",
selector: '#app',
elements: {
logo: "img"
logo: 'img'
},
// - a page object section can also have sub-sections
// - elements or sub-sections located here are retrieved using the "app" section as the base
sections: {
headline: {
selector: "h1"
selector: 'h1'
},
welcome: {
// the equivalent css selector for the "welcome" sub-section would be:
// '#app div.hello'
selector: "div.hello",
selector: 'div.hello',
elements: {
cliPluginLinks: {
selector: "ul",
selector: 'ul',
index: 0
}
}
@@ -49,4 +49,4 @@ module.exports = {
}
}
}
};
}