Beispiel #1
0
 def test_google_play_field(self, email):
     page = RegistrationPage().open()
     page.select_mobile_os('Android')
     assert not page.populate_google_play(email, assert_on_fail=False),\
         f'Поле Google Play заполнено без ошибок данными: {email}'
Beispiel #2
0
 def test_email_field(self, email):
     page = RegistrationPage().open()
     assert not page.populate_email(
         email, assert_on_fail=False
     ), f'Поле email заполнено без ошибок данными: {email}'
Beispiel #3
0
 def test_phone_field(self, phone):
     page = RegistrationPage().open()
     assert not page.populate_phone(
         phone, assert_on_fail=False
     ), f'Поле телефон заполнено без ошибок данными: {phone}'
Beispiel #4
0
 def test_fio_field(self, name):
     page = RegistrationPage().open()
     assert not page.populate_user_name(
         name, assert_on_fail=False
     ), f'Поле ФИО заполнено без ошибок данными: {name}'
Beispiel #5
0
 def test_organization_field(self):
     page = RegistrationPage().open()
     page.populate_none_exist_organization('OOO "Рога и Копыта"')
Beispiel #6
0
 def test_registration_ios_login(self):
     page = RegistrationPage().open()
     page.select_organization(BaseIosReg.organization)
     page.populate_user_name(BaseIosReg.fio)
     page.populate_email(BaseIosReg.email)
     page.populate_phone(BaseIosReg.phone)
     page.select_mobile_os(BaseIosReg.mobile_os)
     page.google_play_field_disabled_check()
     page.populate_login(BaseIosReg.login)
     page.upload_scan_image(BaseIosReg.scan_image)
     page.assert_page_errors()
Beispiel #7
0
 def test_registration_login(self):
     page = RegistrationPage().open()
     page.select_organization(BaseAndroidReg.organization)
     page.populate_user_name(BaseAndroidReg.fio)
     page.populate_email(BaseAndroidReg.email)
     page.populate_phone(BaseAndroidReg.phone)
     page.select_mobile_os(BaseAndroidReg.mobile_os)
     page.populate_google_play(BaseAndroidReg.email)
     page.populate_login(BaseAndroidReg.login)
     page.upload_scan_image(BaseAndroidReg.scan_image)
     page.assert_page_errors()
Beispiel #8
0
 def test_upload_scan_field(self, file):
     page = RegistrationPage().open()
     assert not page.upload_scan_image(
         file, assert_on_fail=False), f'Файл добавлен без ошибок: {file}'