diff --git a/helpers.js b/helpers.js index a1f7434a29..e830824e7c 100644 --- a/helpers.js +++ b/helpers.js @@ -54,14 +54,15 @@ function logConsole(page) { function logXHRRequests(page) { let buffer = ""; - page.on('request', req => { + page.on('requestfinished', async (req) => { const type = req.resourceType(); - if (type === 'xhr' || type === 'fetch') { - buffer += `${req.method()} ${req.url()} \n`; + const response = await req.response(); + //if (type === 'xhr' || type === 'fetch') { + buffer += `${type} ${response.status()} ${req.method()} ${req.url()} \n`; // if (req.method() === "POST") { // buffer += " Post data: " + req.postData(); // } - } + //} }); return { logs() { diff --git a/start.js b/start.js index aa459537c2..c4eba26b58 100644 --- a/start.js +++ b/start.js @@ -54,8 +54,6 @@ async function runTests() { await acceptServerNoticesInviteAndConsent(page, noticesName); process.stdout.write('done\n'); - throw new Error('blubby'); - const room = 'test'; process.stdout.write(`* creating room ${room} ... `); await createRoom(page, room);