This thread is trying to answer question "How can the same set of test cases be run on two different URLs with minor differences in behavior?"
lets say I have qa and staging environments. I have 2 config files for the 2 of them i.e. qa.config.ts and staging.config.ts. I also have 2 .env files i.e qa.env and staging.env. qa.config.ts is linked to qa.env and the staging.config.ts is linked to staging.env. Then when I run the test, I am passing the --config parameter.
@lucky_rabbit_44106 please review this is how we achieved it https://m.youtube.com/watch?v=GQStVI5qbLI
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 firstname.lastname@example.org.