def test_profile_creation(self, mozwebqa, new_user): home_page = Home(mozwebqa) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("New MozilliansUser") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely") # Skills profile.add_skill('test') profile.select_language('en') # Location profile.set_location('Mountain View, 94041, California') # agreed to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal('New MozilliansUser', profile_page.name) Assert.equal(new_user['email'], profile_page.email) Assert.equal("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely", profile_page.biography) Assert.equal('test', profile_page.skills) Assert.equal('English', profile_page.languages) Assert.equal('Mountain View, California, United States', profile_page.location)
def test_profile_creation(self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email'], new_user['password']) # Click recaptcha box profile.check_recaptcha() # Full name profile.set_full_name("New MozilliansUser") # Location profile.set_location('Mountain View, 94041, California') # Agree to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() assert profile_page.was_account_created_successfully assert profile_page.is_pending_approval_visible assert 'New MozilliansUser' == profile_page.name assert new_user['email'] == profile_page.email assert 'Mountain View, California, United States' == profile_page.location
def test_profile_creation(self, base_url, selenium, new_user): home_page = Home(selenium, base_url).open() profile = home_page.create_new_user(new_user['email']) # Click recaptcha box profile.check_recaptcha() # Full name profile.set_full_name("New MozilliansUser") # Location profile.select_country("United States") profile.select_region("California") profile.select_city("Mountain View") # Agree to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() assert profile_page.was_account_created_successfully assert profile_page.is_pending_approval_visible assert 'New MozilliansUser' == profile_page.name assert new_user['email'] == profile_page.email assert 'Mountain View, California, United States' == profile_page.location
def test_non_ascii_characters_are_allowed_in_profile_information(self, mozwebqa): user = self.get_new_user() home_page = Home(mozwebqa) profile = home_page.create_new_user(user) profile.set_full_name("New MozilliansUser") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely") skills = profile.click_next_button() skills.add_skill(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2') skills.add_language(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2') location = skills.click_next_button() location.select_country('gr') location.set_state('Greece') location.set_city('Athens') location.check_privacy() profile_page = location.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal('New MozilliansUser', profile_page.name) Assert.equal(user['email'], profile_page.email) Assert.equal("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely", profile_page.biography) Assert.equal(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2', profile_page.skills) Assert.equal(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2', profile_page.languages) Assert.equal('Athenes, Greece\nGreece', profile_page.location)
def test_creating_profile_without_checking_privacy_policy_checkbox(self, mozwebqa): user = self.get_new_user() home_page = Home(mozwebqa) profile = home_page.create_new_user(user) profile.set_full_name("User that doesn't like policy") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, and will not check accept the privacy policy") skills = profile.click_next_button() skills.add_skill('test') skills.add_language('english') location = skills.click_next_button() location.select_country('us') location.set_state('California') location.set_city('Mountain View') location.click_create_profile_button() profile = ProfileTab(mozwebqa) Assert.equal('new error message', profile.error_message) location = profile.go_to_tab('location') Assert.equal('This field is required.', location.privacy_error_message)
def test_non_ascii_characters_are_allowed_in_profile_information(self, mozwebqa, new_user): home_page = Home(mozwebqa) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("New MozilliansUser") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely") # Skills profile.add_skill(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2') # Location profile.set_location('Athens, Greece') # agreed to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal('New MozilliansUser', profile_page.name) Assert.equal(new_user['email'], profile_page.email) Assert.equal("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely", profile_page.biography) Assert.equal(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2', profile_page.skills) Assert.equal(u'\u0394\u03D4\u03D5\u03D7\u03C7\u03C9\u03CA\u03E2', profile_page.languages) Assert.equal('Athenes, Greece, Greece', profile_page.location)
def test_profile_creation(self, mozwebqa): user = self.get_new_user() home_page = Home(mozwebqa) profile = home_page.create_new_user(user) profile.set_full_name("New MozilliansUser") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely") skills = profile.click_next_button() skills.add_skill('test') skills.add_language('english') location = skills.click_next_button() location.select_country('us') location.set_state('California') location.set_city('Mountain View') location.check_privacy() profile_page = location.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal('New MozilliansUser', profile_page.name) Assert.equal(user['email'], profile_page.email) Assert.equal("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely", profile_page.biography) Assert.equal('test', profile_page.skills) Assert.equal('english', profile_page.languages) Assert.equal('Mountain View, California\nUnited States', profile_page.location)
def test_creating_profile_without_checking_privacy_policy_checkbox(self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("User that doesn't like policy") # Location profile.set_location('Durango, Colorado') profile.click_create_profile_button() assert 'Please correct the errors below.' == profile.error_message
def test_creating_profile_without_checking_privacy_policy_checkbox( self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email']) profile.set_full_name("User that doesn't like policy") # Click recaptcha box profile.check_recaptcha() profile = profile.click_create_profile_button(leavepage=False) assert 'Please correct the errors below.' == profile.error_message
def test_creating_profile_without_checking_privacy_policy_checkbox( self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("User that doesn't like policy") # Location profile.set_location('Durango, Colorado') profile.click_create_profile_button() Assert.equal('Please correct the errors below.', profile.error_message)
def test_creating_profile_without_checking_privacy_policy_checkbox(self, base_url, selenium, new_user): home_page = Home(selenium, base_url).open() profile = home_page.create_new_user(new_user['email']) profile.set_full_name("User that doesn't like policy") # Location profile.select_country("United States") profile.select_region("Colorado") profile.select_city("Durango") # Click recaptcha box profile.check_recaptcha() profile = profile.click_create_profile_button(leavepage=False) assert 'Please correct the errors below.' == profile.error_message
def test_creating_profile_without_checking_privacy_policy_checkbox( self, base_url, selenium, new_user): home_page = Home(selenium, base_url).open() profile = home_page.create_new_user(new_user['email']) profile.set_full_name("User that doesn't like policy") # Location profile.select_country("United States") profile.select_region("Colorado") profile.select_city("Durango") # Click recaptcha box profile.check_recaptcha() profile = profile.click_create_profile_button(leavepage=False) assert 'Please check this box if you want to proceed.' == profile.privacy_error_message
def test_creating_profile_without_checking_privacy_policy_checkbox(self, mozwebqa, new_user): home_page = Home(mozwebqa) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("User that doesn't like policy") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, and will not check accept the privacy policy") # Skills profile.add_skill('test') profile.select_language('en') # Location profile.set_location('Durango, Colorado') profile.click_create_profile_button() Assert.equal('Please correct the errors below.', profile.error_message)
def test_profile_creation(self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("New MozilliansUser") # Location profile.set_location('Mountain View, 94041, California') # agreed to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() assert profile_page.was_account_created_successfully assert profile_page.is_pending_approval_visible assert 'New MozilliansUser' == profile_page.name assert new_user['email'] == profile_page.email assert 'Mountain View, California, United States' == profile_page.location
def test_creating_profile_without_checking_privacy_policy_checkbox(self, mozwebqa): user = self.get_new_user() home_page = Home(mozwebqa) profile = home_page.create_new_user(user) profile.set_full_name("User that doesn't like policy") profile.set_bio("Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, and will not check accept the privacy policy") # Skills profile.add_skill('test') profile.add_language('english') # Location profile.select_country('us') profile.set_state('California') profile.set_city('Mountain View') profile.click_create_profile_button() Assert.equal('Please correct the errors below.', profile.error_message)
def test_profile_creation(self, base_url, selenium, new_user): home_page = Home(base_url, selenium) profile = home_page.create_new_user(new_user['email'], new_user['password']) profile.set_full_name("New MozilliansUser") # Location profile.set_location('Mountain View, 94041, California') # agreed to privacy policy profile.check_privacy() profile_page = profile.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal('New MozilliansUser', profile_page.name) Assert.equal(new_user['email'], profile_page.email) Assert.equal('Mountain View, California, United States', profile_page.location)
def test_profile_creation(self, mozwebqa): user = self.get_new_user() home_page = Home(mozwebqa) profile = home_page.create_new_user(user) profile.set_full_name("New MozilliansUser") profile.set_bio( "Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely" ) # Skills profile.add_skill("test") profile.add_language("english") # Location profile.select_country("us") profile.set_state("California") profile.set_city("Mountain View") profile.check_privacy() profile_page = profile.click_create_profile_button() Assert.true(profile_page.was_account_created_successfully) Assert.true(profile_page.is_pending_approval_visible) Assert.equal("New MozilliansUser", profile_page.name) Assert.equal(user["email"], profile_page.email) Assert.equal( "Hello, I'm new here and trying stuff out. Oh, and by the way: I'm a robot, run in a cronjob, most likely", profile_page.biography, ) Assert.equal("test", profile_page.skills) Assert.equal("english", profile_page.languages) Assert.equal("Mountain View, California, United States", profile_page.location)