Skip to content

Commit

Permalink
tests: Remove deprecated syntax for headless option
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Oct 23, 2023
1 parent 7dca1d6 commit 2df558d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/activation_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ def test_activation(IP, nc_port, admin_port, options, wait_timeout=120):
sys.exit(2)

arg_timeout = 120
options = Options()
options = webdriver.FirefoxOptions()
for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
sys.exit(2)
elif opt == '--no-gui':
options.headless = True
options.add_argument("-headless")
elif opt in ('-t', '--timeout'):
arg_timeout = int(arg)
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/nextcloud_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver):
usage()
sys.exit(2)

options = Options()
options = webdriver.FirefoxOptions()
for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
Expand All @@ -288,7 +288,7 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver):
if os.path.exists(test_cfg):
os.unlink(test_cfg)
elif opt == '--no-gui':
options.headless = True
options.add_argument("-headless")
else:
usage()
sys.exit(2)
Expand Down

0 comments on commit 2df558d

Please sign in to comment.