Skip to content

Commit

Permalink
✔️: fix login form selenium tests after make username and password re…
Browse files Browse the repository at this point in the history
…quired
  • Loading branch information
itisAliRH committed Mar 12, 2024
1 parent 8094f13 commit 7297144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy_test/selenium/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ def test_logging_in(self):

@selenium_test
def test_invalid_logins(self):
bad_emails = ["test2@test.org", "test", "", "'; SELECT * FROM galaxy_user WHERE 'u' = 'u';"]
bad_emails = ["test2@test.org", "test", "'; SELECT * FROM galaxy_user WHERE 'u' = 'u';"]
for bad_email in bad_emails:
self.home()
self.submit_login(bad_email, assert_valid=False)
self.assert_error_message()

@selenium_test
def test_invalid_passwords(self):
bad_passwords = ["1234", "", "; SELECT * FROM galaxy_user"]
bad_passwords = ["1234", "; SELECT * FROM galaxy_user"]
for bad_password in bad_passwords:
self.home()
self.submit_login(self._get_random_email(), password=bad_password, assert_valid=False)
Expand Down

0 comments on commit 7297144

Please sign in to comment.