I have a Codeceptjs/Puppeteer test that runs locally on containers orchestrated by Kubernetes and using data coming from AWS.
Example code
...
I.waitForVisible('#§Brand§amazon + div', 30);
I.scrollTo('#§Brand§amazon + div', 30); // Jenkins stops here
...
I also tried
...
I.waitForVisible('#§Brand§amazon + div', 30);
I.click('#§Brand§amazon + div'); // Jenkins stops here
...
When I run the same test in a Jenkins pipeline (everything runs on AWS), always with K8S governing things, the steps "I.scrollTo" or "I.click" fails with the message: "Node is either not visible or not an HTMLElement".
The output screenshots show that the page is correctly loaded. These screenshots are identical both locally and on Jenkins pipeline.
What could it be that makes the tests run locally and fail on Jenkins?