Commit f7907867 authored by Vincent's avatar Vincent

Set up WebdriverIO

parent 4aceff2f
node_modules
\ No newline at end of file
node_modules
errorShots/
......@@ -5,10 +5,14 @@
"dependencies": {
},
"scripts": {
"start": "webpack-serve --config project/webpack.config.js"
"wdio": "wdio",
"start": "webpack-serve --config project/webpack.config.js --port 3000"
},
"devDependencies": {
"webpack": "^4.16.4",
"webpack-serve": "^2.0.2"
"webpack-serve": "^2.0.2",
"wdio-jasmine-framework": "^0.3.5",
"wdio-selenium-standalone-service": "^0.0.10",
"webdriverio": "^4.13.1"
}
}
\ No newline at end of file
}
describe('The website', function(){
it('should display a button to submit an article on the homepage', function(){
browser.url('/project');
expect(browser.getTitle()).toBe('Minimal reproducible wdio-webpack-dev-server-service setup');
expect(browser.element('h1').getText()).toBe('Minimal reproducible wdio-webpack-dev-server-service setup');
});
});
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment