This thread is trying to answer question "Why do some Playwright tests fail due to timeouts when run all at once in the terminal but pass when run individually or with the VS Code Playwright extension?"
Would assume that those tests that are failing have an issue when running in parallel. Capture a trace on, you should see the difference when running sequentially versus parallel. Based on the timeout, you are not on the page you are expecting so the element is not found. Again, only assumptions based on the data provided.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].