Commit 714bcd17 authored by Johannes Zellner's avatar Johannes Zellner

Update test deps and remove unused ones

parent 4113a2ed
This diff is collapsed.
......@@ -8,17 +8,10 @@
},
"author": "",
"license": "ISC",
"devDependencies": {
"ejs": "^3.1.3",
"expect.js": "^0.3.1",
"mkdirp": "^1.0.4",
"mocha": "^8.1.1",
"rimraf": "^3.0.2",
"selenium-server-standalone-jar": "^3.141.59",
"selenium-webdriver": "^3.6.0",
"superagent": "^5.3.1"
},
"dependencies": {
"chromedriver": "^84.0.1"
"chromedriver": "^86.0.0",
"expect.js": "^0.3.1",
"mocha": "^8.1.3",
"selenium-webdriver": "^3.6.0"
}
}
......@@ -29,22 +29,16 @@ describe('Application life cycle test', function () {
const EMAIL = 'admin@server.local';
const PASSWORD = 'changeME123?!12354';
const ITEM_NAME = 'Test Item'
var server, browser = new Builder().forBrowser('chrome').build();
var app;
var browser;
before(function (done) {
var seleniumJar= require('selenium-server-standalone-jar');
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
server = new SeleniumServer(seleniumJar.path, { port: 4444 });
server.start();
done();
before(function () {
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
});
after(function () {
browser.quit();
server.stop();
});
function waitForElement(elem) {
......
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