Update test

This commit is contained in:
Girish Ramakrishnan 2023-07-29 20:08:07 +05:30
parent 65df2c54da
commit 8876fedd40
3 changed files with 18 additions and 19 deletions

14
test/package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"chromedriver": "^114.0.3",
"chromedriver": "^115.0.0",
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"selenium-webdriver": "^4.10.0",
@ -236,9 +236,9 @@
}
},
"node_modules/chromedriver": {
"version": "114.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-114.0.3.tgz",
"integrity": "sha512-Qy5kqsAUrCDwpovM5pIWFkb3X3IgJLoorigwFEDgC1boL094svny3N7yw06marJHAuyX4CE/hhd25RarIcKvKg==",
"version": "115.0.0",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-115.0.0.tgz",
"integrity": "sha512-mkPL+sXMLMUenoXCiKREw+cBl3ibfhiWxkiv9ByIPpqtrrInCt9zKdOolAsbmN/ndlH51WtT5ukUKbeRdrpikg==",
"hasInstallScript": true,
"dependencies": {
"@testim/chrome-version": "^1.1.3",
@ -1657,9 +1657,9 @@
}
},
"chromedriver": {
"version": "114.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-114.0.3.tgz",
"integrity": "sha512-Qy5kqsAUrCDwpovM5pIWFkb3X3IgJLoorigwFEDgC1boL094svny3N7yw06marJHAuyX4CE/hhd25RarIcKvKg==",
"version": "115.0.0",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-115.0.0.tgz",
"integrity": "sha512-mkPL+sXMLMUenoXCiKREw+cBl3ibfhiWxkiv9ByIPpqtrrInCt9zKdOolAsbmN/ndlH51WtT5ukUKbeRdrpikg==",
"requires": {
"@testim/chrome-version": "^1.1.3",
"axios": "^1.4.0",

View File

@ -9,7 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"chromedriver": "^114.0.3",
"chromedriver": "^115.0.0",
"expect.js": "^0.3.1",
"mocha": "^10.2.0",
"selenium-webdriver": "^4.10.0",

View File

@ -27,20 +27,19 @@ if (!process.env.USERNAME || !process.env.PASSWORD || !process.env.EMAIL) {
describe('Application life cycle test', function () {
this.timeout(0);
var TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 5000;
var EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
var LOCATION = 'test';
var SSH_PORT = 29420;
const TIMEOUT = parseInt(process.env.TIMEOUT, 10) || 5000;
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
const LOCATION = 'test';
const SSH_PORT = 29420;
var app;
var browser;
let app, browser;
var repodir = '/tmp/testrepo';
var reponame = 'testrepo';
const repodir = '/tmp/testrepo';
const reponame = 'testrepo';
var username = process.env.USERNAME;
var password = process.env.PASSWORD;
var email = process.env.EMAIL;
const username = process.env.USERNAME;
const password = process.env.PASSWORD;
const email = process.env.EMAIL;
before(function () {
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();