This thread is trying to answer question "How can you integrate three fixtures from different files into one fixture, and import the integrated fixture in the test case?"
Version 1.39 has a feature which might be what you're looking for: merge fixtures: https://playwright.dev/docs/release-notes#merge-test-fixtures It allows you to have all the fixtures defined in multiple places (usually imported from multiple files) available in your test.
If you really want to combine multiple fixtures into one, then -as Mindaugas mentions- you can compose fixtures. One fixture can be implemented to be dependent on the others. And then the dependency fixtures will automatically run.
For example: page is dependent on context, context is dependent on browser, browser is dependent on browserName.
But in your test you only mention page
.
You can read more about fixtures here: https://playwright.dev/docs/test-fixtures
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].