Esempio n. 1
0
 def expired_user_login_validation(self):
     error_info = self.error_username_message()
     assert_that(error_info).is_equal_to('Account expired')
Esempio n. 2
0
 def valid_login_validation(self):
     SeleniumHelper.wait_until_element_is_displayed(self.browser,
                                                    self.LOGIN_XPATH)
     currentUrl = self.browser.current_url
     assert_that(currentUrl).contains(self.MY_PAGE_STRING)
Esempio n. 3
0
 def invalid_user_login_validation(self):
     error_info = self.error_username.get_attribute('innerHTML')
     assert_that(error_info).is_equal_to('Wrong email or password')
Esempio n. 4
0
 def blank_user_login_validation(self):
     error_info = self.error_username_message()
     assert_that(error_info).is_equal_to('Please enter your email')
     error_info = self.error_password_message()
     assert_that(error_info).is_equal_to('Please enter your password')
Esempio n. 5
0
def verify_class_detail_info(scheduled_class_id, json_data):
    scheduled_id_from_basic_info = json_data[BasicInfo][ScheduledClassId]
    scheduled_id_from_booking_info = json_data[BookingInfo][ScheduledClassId]

    assert_that(scheduled_id_from_basic_info).is_equal_to(scheduled_class_id)
    assert_that(scheduled_id_from_booking_info).is_equal_to(scheduled_class_id)
Esempio n. 6
0
 def is_target_page(self):
     self.browser.get(B2S_URL)
     return assert_that(self.browser.current_url).contains("/partner/elab")
Esempio n. 7
0
 def valid_login_validation(self):
     SeleniumHelper.wait_until_element_is_displayed(self.browser, self.LOGIN_XPATH)
     currentUrl = self.browser.current_url
     assert_that(currentUrl).contains(self.MY_PAGE_STRING)
Esempio n. 8
0
 def expired_user_login_validation(self):
     error_info = self.error_username_message()
     assert_that(error_info).is_equal_to('Account expired')
Esempio n. 9
0
 def blank_user_login_validation(self):
     error_info = self.error_username_message()
     assert_that(error_info).is_equal_to('Please enter your email')
     error_info = self.error_password_message()
     assert_that(error_info).is_equal_to('Please enter your password')
Esempio n. 10
0
 def invalid_user_login_validation(self):
     error_info = self.error_username.get_attribute('innerHTML')
     assert_that(error_info).is_equal_to('Wrong email or password')
Esempio n. 11
0
 def is_target_page(self):
     self.browser.get(B2S_URL)
     return assert_that(self.browser.current_url).contains("/partner/elab")