new design(?)

This commit is contained in:
silas
2021-04-22 15:36:46 +02:00
parent cc6d60951c
commit 09dc13b4f8
46 changed files with 508 additions and 1953 deletions

View File

@@ -39,7 +39,7 @@ async function startTestServer() {
stdio: "pipe"
}, reject);
child.stdout.on("data", data => {
console.log("[SERVER]", data);
console.log("[SERVER]", data);
if (data.indexOf("Server started on Port: ") !== -1){
resolve();
}

View File

@@ -5,7 +5,7 @@ const functions = require("../../lib/functions.js");
async function solveLevel() {
await functions.pause(500);
await browser.executeAsync(async (delayFactor, done) => {
await browser.executeAsync((delayFactor, done) => {
const delay = 100*delayFactor;
let promise = Promise.resolve();
@@ -69,7 +69,6 @@ describe("fsj suite", () => {
let baseUrl = null;
beforeAll(async () => {
if (browser.config.baseUrl.trim() !== "") {
baseUrl = browser.config.baseUrl;
} else {
@@ -82,7 +81,6 @@ describe("fsj suite", () => {
});
beforeEach(async function () {
await browser.url(baseUrl);
await browser.waitUntil(async () => {
@@ -107,4 +105,4 @@ describe("fsj suite", () => {
// await functions.pause(5000);
});
});
});

View File

@@ -58,6 +58,7 @@ exports.config = {
maxInstances: 1,
}],
onPrepare: async function(){
console.log("on prepare");
await Service.setup();
},
onComplete: async function(){
@@ -65,4 +66,4 @@ exports.config = {
await Service.tearDown();
console.log("teared down!");
}
};
};