Skip to content

Commit

Permalink
fixing tests #2
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilPawel committed Jun 22, 2023
1 parent f8d65ea commit 8d713a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions portal/tests/test_independent_student.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def test_delete_indy_account(self):
delete_button_confirm.click()

# check if can still login to the account
time.sleep(0.9)
page = self.go_to_homepage()
assert page.go_to_independent_student_login_page().independent_student_login_failure(email, password)

Expand Down
3 changes: 2 additions & 1 deletion portal/tests/test_teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,8 @@ def test_make_admin_popup(self):

assert page.element_exists((By.CLASS_NAME, "popup-box__msg"))

def test_delete_account(self):
FADE_TIME = 0.9 # often fails if lower
def test_delete_account(self):

email, password = signup_teacher_directly()
create_organisation_directly(email)
Expand Down Expand Up @@ -817,6 +817,7 @@ def test_delete_account(self):
page.browser.find_element_by_id("delete_button").click()

# back to homepage
time.sleep(FADE_TIME)
assert page.browser.find_element_by_class_name("banner--homepage")

# user should not be able to login now
Expand Down

0 comments on commit 8d713a1

Please sign in to comment.