Prettify codebase
This commit is contained in:
@@ -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 = {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user