7va puppeteer timeout
Addressing Puppeteer encountered an error while running scenario "" TimeoutError
Puppeteer is running headless via /deployment/backstop.config.js
"engine": "puppeteer",
According to https://pptr.dev/troubleshooting to address this error in gitlab two things must be added.
- To run puppeteer headless, add the following configuration to the .gitlab-ci.yml script:
before_script:
- apt-get update
- apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4
libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1
libxss1 libxtst6 ca-certificates fonts-liberation libnss3 lsb-release
xdg-utils wget
- Add '--no-sandbox' mode and '--disable-setuid-sandbox' when launching Puppeteer. This can be done by passing them as an arguments to your .launch() call: puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'] });.
Currently the -no-sandbox argument is being passed.
Adding '--disable-setuid-sandbox'