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
I expect that my Pytest tests use the PW server I started.
Actual behavior
The tests are using a local PW instance.
Additional context
I followed the tip from here as created a docker compose setup for my tests.
I have a service called "ui" that builds and serves an Angular app. And another service that uses the official PW Node image to start a server.
I am sure that my setup is working because I also created a script (not a Pytest test) that successfully connects to the server and performs an operation
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.connect(ws_endpoint="ws://127.0.0.1:9999/")
page = browser.new_page()
page.goto("http://ui:4200/#/usage")
page.screenshot(path="./test.png")
browser.close()
and then start my test as if the configuration in the fixture is ignored and the local PW is used instead.
I am sure that the fixture is picked up because the other change I make there: playwright.selectors.set_test_id_attribute("ref") is working.
I really need to make this work because I want to run visual regression tests in out CI and in order not to have two sets of screenshots I want to use the same system for running PW.
Environment
- Operating System: MacOS
- CPU: Intel
- Browser: All
- Python Version: 3.10
- Other info:
The text was updated successfully, but these errors were encountered:
Version
1.41.0
Steps to reproduce
My docker-compose.yml:
Expected behavior
I expect that my Pytest tests use the PW server I started.
Actual behavior
The tests are using a local PW instance.
Additional context
I followed the tip from here as created a docker compose setup for my tests.
I have a service called "ui" that builds and serves an Angular app. And another service that uses the official PW Node image to start a server.
I am sure that my setup is working because I also created a script (not a Pytest test) that successfully connects to the server and performs an operation
But when I try to use the PW serves in Pytest
and then start my test as if the configuration in the fixture is ignored and the local PW is used instead.
I am sure that the fixture is picked up because the other change I make there:
playwright.selectors.set_test_id_attribute("ref")
is working.I really need to make this work because I want to run visual regression tests in out CI and in order not to have two sets of screenshots I want to use the same system for running PW.
Environment
The text was updated successfully, but these errors were encountered: