You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a simple test that overrides the page fixture.
importpytest@pytest.fixturedefpage(page):
# do something with the pageyieldpagedeftest(page):
assertTrue
Describe the bug
When running the above test file with pytest --browser firefox --browser chromium only one instance of the test is run and the following warning is given out instead:
pytest_playwright/pytest_playwright.py:326: UserWarning: When using unittest.TestCase specifying multiple browsers is not supported
When I include some other playwright fixture in either the page fixture or the test method, the test is run with the specified browsers as expected.
So for example, this works:
deftest(page, browser_name): # another playwright fixtureassertTrue
But this does not:
deftest(page, monkeypatch): # a pytest fixtureassertTrue
The text was updated successfully, but these errors were encountered:
Context:
Code Snippet
Just a simple test that overrides the page fixture.
Describe the bug
When running the above test file with
pytest --browser firefox --browser chromium
only one instance of the test is run and the following warning is given out instead:When I include some other playwright fixture in either the page fixture or the test method, the test is run with the specified browsers as expected.
So for example, this works:
But this does not:
The text was updated successfully, but these errors were encountered: