79289377

Date: 2024-12-17 21:17:47
Score: 1
Natty:
Report link

The alternative to serial mode is parallel mode, which is Playwright's default mode.

Now, if you want to run your tests in parallel mode, you have to design them in a way that there are no dependencies between the tests.

For example, in the first test, I visit a URL and perform an action, and in the subsequent test, I need to perform a follow-up action based on the previous test's result.

Sounds like these tests are not independent. That means you won't be able to run them in parallel and have to rely on serial mode.

It's almost certainly possible to refactor your tests into a form where they are independent. Here are some general tips for achieving this:

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mwopitz