Skip to content

Commit 2ac3032

Browse files
authored
🐛E2e: Playwright disable web security (#5753)
1 parent aab64d4 commit 2ac3032

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,17 @@ def user_agent(request: pytest.FixtureRequest) -> str:
158158
return str(request.config.getoption("--user-agent"))
159159

160160

161+
@pytest.fixture(scope="session")
162+
def browser_type_launch_args(browser_type_launch_args: dict, user_agent: str) -> dict:
163+
# NOTE: Until the dynamic sidecar is setup with https://doc.traefik.io/traefik/middlewares/http/headers/#accesscontrolallowheaders
164+
# this must remain. until https://github.com/ITISFoundation/osparc-simcore/issues/5754 is completed
165+
return {**browser_type_launch_args, "args": ["--disable-web-security"]}
166+
167+
161168
@pytest.fixture(scope="session")
162169
def browser_context_args(
163-
browser_context_args: dict[str, dict[str, str]], user_agent: str
164-
) -> dict[str, dict[str, str]]:
170+
browser_context_args: dict[str, dict[str, str] | str], user_agent: str
171+
) -> dict[str, dict[str, str] | str]:
165172
# Override browser context options, see https://playwright.dev/python/docs/test-runners#fixtures
166173
return {
167174
**browser_context_args,

0 commit comments

Comments
 (0)