test: improve failure logging in E2E tests
This commit is contained in:
parent
8136547e6e
commit
d2d3453f35
4
.github/workflows/wc-e2e-test.yaml
vendored
4
.github/workflows/wc-e2e-test.yaml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
./prepare.sh
|
||||
cd backend
|
||||
npm install
|
||||
npm run start:prod > ../../backend.log 2>&1 &
|
||||
npm run start:prod > ../backend.log 2>&1 &
|
||||
- name: Wait for OpenVidu Meet to Start
|
||||
run: wait-on --timeout 30000 http://localhost:6080/meet/health
|
||||
- name: Start testapp
|
||||
@ -52,6 +52,8 @@ jobs:
|
||||
- name: Run tests
|
||||
run: |
|
||||
ls -al backend/public
|
||||
ls -al backend/public/webcomponent
|
||||
|
||||
cd frontend/webcomponent
|
||||
# Install Playwright browsers
|
||||
mkdir -p /tmp/ms-playwright
|
||||
|
||||
@ -50,7 +50,7 @@ test.describe('Web Component E2E Tests', () => {
|
||||
|
||||
test.afterEach(async ({}, testInfo) => {
|
||||
if (testInfo.status !== testInfo.expectedStatus) {
|
||||
console.log(`Test falló: ${testInfo.title}`);
|
||||
console.error(`FAIL: ${testInfo.title}`);
|
||||
|
||||
// Take screenshot if the test fails
|
||||
if (page && !page.isClosed()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user