Made progress on implementing some shops.
Performed some folder restructuring as well.
This commit is contained in:
10
Props/spa/tests/e2e/.eslintrc.js
Normal file
10
Props/spa/tests/e2e/.eslintrc.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
plugins: ['wdio'],
|
||||
extends: 'plugin:wdio/recommended',
|
||||
env: {
|
||||
mocha: true
|
||||
},
|
||||
rules: {
|
||||
strict: 'off'
|
||||
}
|
||||
}
|
15
Props/spa/tests/e2e/pageobjects/app.page.js
Normal file
15
Props/spa/tests/e2e/pageobjects/app.page.js
Normal file
@@ -0,0 +1,15 @@
|
||||
class App {
|
||||
/**
|
||||
* elements
|
||||
*/
|
||||
get heading () { return $('h1') }
|
||||
|
||||
/**
|
||||
* methods
|
||||
*/
|
||||
open (path = '/') {
|
||||
browser.url(path)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new App()
|
8
Props/spa/tests/e2e/specs/app.spec.js
Normal file
8
Props/spa/tests/e2e/specs/app.spec.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const App = require('../pageobjects/app.page')
|
||||
|
||||
describe('Vue.js app', () => {
|
||||
it('should open and render', () => {
|
||||
App.open()
|
||||
expect(App.heading).toHaveText('Welcome to Your Vue.js App')
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user