Improving test speed and trying to get error logs whatever happens
This commit is contained in:
parent
a5c7abe61e
commit
a5325e9327
2
.github/workflows/end_to_end_tests.yml
vendored
2
.github/workflows/end_to_end_tests.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
run: LIVE_RELOAD=0 docker-compose up -d
|
run: LIVE_RELOAD=0 docker-compose up -d
|
||||||
|
|
||||||
- name: "Wait for environment to build (and downloading testcafe image)"
|
- name: "Wait for environment to build (and downloading testcafe image)"
|
||||||
run: (docker-compose -f docker-compose.testcafe.yml pull &) && docker-compose logs -f --tail=0 front | grep -q "Compiled successfully"
|
run: (docker-compose -f docker-compose.testcafe.yml build &) && docker-compose logs -f --tail=0 front | grep -q "Compiled successfully"
|
||||||
|
|
||||||
# - name: "temp debug: display logs"
|
# - name: "temp debug: display logs"
|
||||||
# run: docker-compose logs
|
# run: docker-compose logs
|
||||||
|
@ -158,6 +158,12 @@ test("Test that variables storage works", async (t: TestController) => {
|
|||||||
console.log(await t.getBrowserConsoleMessages());
|
console.log(await t.getBrowserConsoleMessages());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('Error while fetching browser logs (maybe linked to a closed iframe?)', e);
|
console.error('Error while fetching browser logs (maybe linked to a closed iframe?)', e);
|
||||||
|
try {
|
||||||
|
console.log('Logs from main window:');
|
||||||
|
console.log(await t.switchToMainWindow().getBrowserConsoleMessages());
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Unable to retrieve logs', e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user