Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка при запуске cucumber-e2e тестов. #11

Closed
slo-nik opened this issue Sep 14, 2024 · 0 comments
Closed

Ошибка при запуске cucumber-e2e тестов. #11

slo-nik opened this issue Sep 14, 2024 · 0 comments

Comments

@slo-nik
Copy link

slo-nik commented Sep 14, 2024

При попытке запустить e2e тесты всё завершается ошибкой:

      Scenario: View home page content (attempt 2, retried) # features/home.feature:7
       ✖ Before # features/support/hooks.ts:7
         Error: function timed out, ensure the promise resolves within 30000 milliseconds
             at Timeout.<anonymous> (/app/node_modules/@cucumber/cucumber/src/time.ts:52:14)
             at listOnTimeout (node:internal/timers:573:17)
             at processTimers (node:internal/timers:514:7)

Получил обновления с git через git pull --rebase origin master
Запуск:
make init
make cucumber-e2e

Если понизить версии node, cucumber и puppeteer - тесты e2e проходят без ошибок.

FROM node:18.18.0-alpine
    "@cucumber/cucumber": "^9.4.0",
    "chai": "^4.3.7",
    "puppeteer": "^21.1.0"

UPD

Чтобы решить проблему необходимо указать точную версию для node:21-alpine

FROM node:21-alpine3.19

Согласно документации у puppeteer возникает проблема с timeout в alpine3.20.

CAUTION

The current Chromium version in Alpine 3.20 is causing timeout issues with Puppeteer. Downgrading to Alpine 3.19
fixes the issue. See #11640, #12637, #12189

@slo-nik slo-nik closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant