This thread is trying to answer question "How can I set test options like timezoneId within a test fixture?"
Hi, from my somewhat outdated experience, I believe it works pretty much the same as overriding regular fixtures: https://playwright.dev/docs/test-fixtures#overriding-fixtures
Overriding the context fixture itself and add conditions into it to change settings like timezone would also be okay.
But I don't think that using test.use in a new fixture that controls your setting is possible (that's how I understand your initial approach). I would assume (I don't know for sure, never tested it) that the order of fixture setup would be problematic. And the context fixture might get setup before your control fixture would update the settings.
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.