I am overriding the plugin fixture to allow for browser audio like so:
@pytest.fixture(scope="session")
def browser_type_launch_args(browser_type_launch_args):
"""Ensure the autoplay capapbility in the browser"""
launch_options = {**browser_type_launch_args, "args": ["--autoplay-policy=no-user-gesture-required"]}
return launch_options
This works perfectly fine when ran locally, but fails inside docker for ALL webkit tests with:
[pid=2503][err] Cannot parse arguments: Unknown option --autoplay-policy=no-user-gesture-required
What am I doing wrong?
This thread is trying to answer question "Why is the autoplay-policy argument not recognized in CICD despite working locally?"
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].