def test_that_featured_personas_go_to_their_landing_page_when_clicked(self, mozwebqa): """ TestCase for Litmus 15081 """ discovery_pane = DiscoveryPane(mozwebqa, self.basepath) first_persona = discovery_pane.first_persona first_persona_url = first_persona.lower().replace(" ", "-") persona = discovery_pane.click_on_first_persona() Assert.true(first_persona_url in discovery_pane.get_url_current_page()) Assert.equal(first_persona, persona.persona_title)
def test_that_mission_statement_is_on_addons_home_page(self, mozwebqa): """ TestCase for Litmus 15065 """ discovery_pane = DiscoveryPane(mozwebqa, self.basepath) discovery_pane.wait_for_mission_visible Assert.true(discovery_pane.is_mission_section_visible) expected_text = "Thanks for using Firefox and supporting Mozilla's mission!" mission_text = discovery_pane.mission_section Assert.true(expected_text in mission_text) Assert.true(discovery_pane.mozilla_org_link_visible()) download_count_regex = "Add-ons downloaded: (.+)" Assert.true(re.search(download_count_regex, discovery_pane.download_count) != None)