new design(?)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user