Skip to content

Commit

Permalink
test: Add UI Testing Headless option (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-marion authored Aug 19, 2024
1 parent 99d2a38 commit 761ee5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integtests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ def react_url():

@pytest.fixture(scope="class")
def selenium_driver(react_url):
options = webdriver.FirefoxOptions()
if os.environ["HEADLESS"]:
options.add_argument("--headless")
driver = webdriver.Remote(
command_executor="http://127.0.0.1:4444", options=webdriver.FirefoxOptions()
command_executor="http://127.0.0.1:4444", options=options
)
driver.set_window_size(1600, 800)
driver.get(react_url)
Expand Down

0 comments on commit 761ee5b

Please sign in to comment.