Esempio n. 1
0
 def test_hello_link_works(self, mozwebqa):
     home_page = Home(mozwebqa)
     home_page.login()
     
     hello = Hello(mozwebqa)
     hello.click_hello_link()
     Assert.true(hello.is_username_present)
Esempio n. 2
0
 def test_helptips_enabled_default(self, mozwebqa):
     home_page = Home(mozwebqa)
     home_page.login()
     
     hello = Hello(mozwebqa)
     
     hello.click_hello_link()
     Assert.true(hello.is_helptips_enabled_present)
Esempio n. 3
0
 def test_update_email_addr(self, mozwebqa):
     home_page = Home(mozwebqa)
     home_page.login()
     
     hello = Hello(mozwebqa)
     
     hello.click_hello_link()
     
     new_user_email = "*****@*****.**" % home_page.random_string()
     hello.update_email_addr(new_user_email)
     Assert.true(home_page.is_successful) 
Esempio n. 4
0
 def test_update_helptips(self, mozwebqa):
     home_page = Home(mozwebqa)
     home_page.login()
     
     hello = Hello(mozwebqa)
     
     hello.click_hello_link()
     hello.click_helptips()
     # Need to ensure this gets pushed to the DB
     time.sleep(2)
     home_page.tabs.click_tab("dashboard_tab")
     hello.click_hello_link()
     
     # Reset the value for future tests.
     hello.click_hello_link()
     hello.click_helptips()
     # Need to ensure this gets pushed to the DB
     time.sleep(2)
     home_page.tabs.click_tab("dashboard_tab")
     hello.click_hello_link()
     Assert.true(hello.is_helptips_enabled)