Skip to content

Commit

Permalink
ui T&C test : check if group/user is still found in body after accept…
Browse files Browse the repository at this point in the history
…ing T&C, but not as pending
  • Loading branch information
cwcummings committed Oct 19, 2021
1 parent 7beb182 commit a54c89f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_magpie_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,14 @@ def test_end2end_user_join_group_with_terms_confirmation(self):
resp = utils.test_request(self, "GET", path)
body = utils.check_ui_response_basic_info(resp)
utils.check_val_not_in("{} [pending]".format(self.test_user_name), body)
utils.check_val_is_in(self.test_user_name, body)

# validate that group membership is no longer pending in the edit user page
path = "/ui/users/{}/default".format(self.test_user_name)
resp = utils.test_request(self, "GET", path)
body = utils.check_ui_response_basic_info(resp)
utils.check_val_not_in("{} [pending]".format(group_with_terms_name), body)
utils.check_val_is_in(group_with_terms_name, body)

# validate that group membership is no longer pending in the user's account page
utils.check_or_try_logout_user(self)
Expand All @@ -441,6 +443,7 @@ def test_end2end_user_join_group_with_terms_confirmation(self):
resp = utils.test_request(self, "GET", "/ui/users/current")
body = utils.check_ui_response_basic_info(resp, expected_title="Magpie")
utils.check_val_not_in("{} [pending]".format(group_with_terms_name), body)
utils.check_val_is_in(group_with_terms_name, body)


@runner.MAGPIE_TEST_UI
Expand Down

0 comments on commit a54c89f

Please sign in to comment.