def test_load_baseurl_and_assert_header(self, mozwebqa): ''' Demo Test - Verify Header is correct on Amo Page ''' home_page = MySiteHomePage(mozwebqa) home_page.go_to_home_page() Assert.equal(home_page.header_text, 'We are')
def test_load_baseurl_and_assert_header(self, mozwebqa): """ Demo Test - Verify Header is correct on Amo Page """ home_page = MySiteHomePage(mozwebqa) home_page.go_to_home_page() Assert.equal(home_page.header_text, "mozilla")
def test_load_baseurl_nondestructive(self, mozwebqa): ''' This test is nondestructive - it does not write to the database or leave a mark on the website ''' home_page = MySiteHomePage(mozwebqa) home_page.go_to_home_page() Assert.true(home_page.is_the_current_page)
def test_load_baseurl_xfail(self, mozwebqa): ''' This test will fail but we have marked it with XFail The test result will be XFail ''' home_page = MySiteHomePage(mozwebqa) home_page.go_to_home_page() Assert.equal(home_page.header_text, 'BlaBla')
def test_load_baseurl_nondestructive(self, mozwebqa): """ This test is nondestructive - it does not write to the database or leave a mark on the website """ home_page = MySiteHomePage(mozwebqa) home_page.go_to_home_page() Assert.true(home_page.is_the_current_page)