1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2025-09-20 12:10:13 +00:00

Update test deps

This commit is contained in:
Johannes Zellner
2020-10-02 17:45:03 +02:00
parent 172c5f7307
commit 8744b525cd
3 changed files with 22 additions and 35 deletions

View File

@@ -34,9 +34,8 @@ describe('Application life cycle test', function () {
var SSH_PORT = 29420;
var app;
var token;
var browser;
var server, browser = new Builder().forBrowser('chrome').build();
var repodir = '/tmp/testrepo';
var reponame = 'testrepo';
@@ -45,26 +44,14 @@ describe('Application life cycle test', function () {
var email = process.env.EMAIL;
before(function () {
var seleniumJar= require('selenium-server-standalone-jar');
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
server = new SeleniumServer(seleniumJar.path, { port: 4444 });
server.start();
browser = new Builder().forBrowser('chrome').setChromeOptions(new Options().windowSize({ width: 1280, height: 1024 })).build();
});
after(function (done) {
after(function () {
browser.quit();
rimraf.sync(repodir);
done();
});
function waitForUrl(url) {
return browser.wait(function () {
return browser.getCurrentUrl().then(function (currentUrl) {
return currentUrl === url;
});
}, TIMEOUT);
}
function getAppInfo() {
var inspect = JSON.parse(execSync('cloudron inspect'));