Skip to content

Commit

Permalink
Update dependencies and fix method calls in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antonengelhardt committed Feb 22, 2024
1 parent 6584681 commit b35453b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python-dotenv>=1.0.0
selenium>=4.8.2
selenium>=4.15.2
pytest>=7.4.3
python-dotenv>=1.0.1
6 changes: 3 additions & 3 deletions integration-tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_success() -> None:
# print body

assert driver.get_page_source() == "Bound to fail but debug the body"
assert driver.current_url == "https://httpbin.org"
assert driver.current_url() == "https://httpbin.org"
assert driver.title == "httpbin.org"
assert driver.get_cookie("oidcSession-0") is not None
tear_down()
Expand All @@ -89,7 +89,7 @@ def test_unsuccessful() -> None:
driver.find_element(By.ID, "username").send_keys(WASM_OIDC_PLUGIN_TEST_EMAIL)
driver.find_element(By.ID, "password").send_keys("nottherightpassword")
driver.find_element(By.XPATH, "/html/body/div/main/section/div/div[2]/div/form/div[2]/button").click()
assert driver.getTitle() == "Log in | Wasm Plugin"
assert driver.title == "Log in | Wasm Plugin"
tear_down()

def test_modified_cookie() -> None:
Expand All @@ -103,7 +103,7 @@ def test_modified_cookie() -> None:
assert driver.title != "httpbin.org"
tear_down()

def test_ignore_ignore_path() -> None:
def test_excluded_path() -> None:
""" Test if the request is allowed when it matches the pattern. """

set_up()
Expand Down

0 comments on commit b35453b

Please sign in to comment.