def test_that_checks_learn_more_link(self, mozwebqa): home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal(u'Learn More\xbb', home.learn_more_text) home.click_learn_more() Assert.true(home.is_learn_more_msg_visible) Assert.equal("Add-ons are applications that let you personalize Firefox with extra functionality and style. Whether you mistype the name of a website or can't read a busy page, there's an add-on to improve your on-the-go browsing.", home.learn_more_msg_text)
def test_that_checks_learn_more_link(self, mozwebqa): home = Home(mozwebqa) assert home.is_the_current_page assert u'Learn More\xbb' == home.learn_more_text home.click_learn_more() assert home.is_learn_more_msg_visible assert ('Add-ons are applications that let you personalize Firefox ' 'with extra functionality and style. Whether you mistype the ' 'name of a website or can\'t read a busy page, there\'s an ' 'add-on to improve your on-the-go browsing.' == home.learn_more_msg_text)
def test_that_checks_learn_more_link(self, base_url, selenium): home = Home(base_url, selenium) assert home.is_the_current_page assert u'Learn More\xbb' == home.learn_more_text home.click_learn_more() assert home.is_learn_more_msg_visible assert ('Add-ons are applications that let you personalize Firefox ' 'with extra functionality and style. Whether you mistype the ' 'name of a website or can\'t read a busy page, there\'s an ' 'add-on to improve your on-the-go browsing.' == home.learn_more_msg_text)
def test_that_checks_the_header_menu(self, mozwebqa): home = Home(mozwebqa) Assert.true(home.is_the_current_page) Assert.equal('FIREFOX ADD-ONS', home.header_text) Assert.equal('Return to the Firefox Add-ons homepage', home.header_title) Assert.equal('Easy ways to personalize.', home.header_statement_text) Assert.equal(u'Learn More\xbb', home.learn_more_text) home.click_learn_more() Assert.true(home.is_learn_more_msg_visible) Assert.equal("Add-ons are applications that let you personalize Firefox with extra functionality and style. Whether you mistype the name of a website or can't read a busy page, there's an add-on to improve your on-the-go browsing.", home.learn_more_msg_text)