def test_unsupported_browser(self, mozwebqa): hello_page = HelloPage(mozwebqa) hello_page.go_to_page() assert 'Oops!\nFirefox Hello only works in browsers that support WebRTC\n' \ 'Download Firefox to make free audio and video calls!\nGet Firefox' == \ hello_page.unsupported_browser_message_text assert 'https://www.mozilla.org/firefox/' in hello_page.unsupported_browser_firefox_link_href
def test_supported_browser(self, mozwebqa): hello_page = HelloPage(mozwebqa) hello_page.go_to_page() assert hello_page.is_hello_logo_visible assert hello_page.is_invalid_conversation_visible assert hello_page.is_mozilla_logo_visible assert 'Sorry, you cannot join this conversation. The link may be ' \ 'expired or invalid.' == hello_page.invalid_conversation_text