Add save button with profile visibility dropdown.

When a learner changes this dropdown from Full to Limited or
vice versa, nothing happens. This creates confusion, to fix
that add save button.

LEARNER-3239
This commit is contained in:
Waheed Ahmed
2017-12-14 16:42:19 +05:00
parent b0773f8e9b
commit cd65d720ad
4 changed files with 26 additions and 1 deletions

View File

@@ -144,8 +144,9 @@ class LearnerProfilePage(FieldsMixin, PageObject):
if privacy != self.privacy:
query = self.q(css=PROFILE_VISIBILITY_INPUT)
select_option_by_value(query, privacy, focus_out=True)
select_option_by_value(query, privacy)
EmptyPromise(lambda: privacy == self.privacy, 'Privacy is set to {}'.format(privacy)).fulfill()
self.q(css='.btn-change-privacy').first.click()
self.wait_for_ajax()
if privacy == 'all_users':