Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: bd8ee8df2b
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (43 sloc) 2.289 kB
#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
from unittestzero import Assert
from pages.desktop.technology import Technology
class TestTechnologyPage:
@pytest.mark.nondestructive
def test_billboard_links_are_visible(self, mozwebqa):
technology_page = Technology(mozwebqa)
technology_page.go_to_page()
Assert.true(technology_page.is_developer_tools_link_visible)
Assert.true(technology_page.is_html5_link_visible)
Assert.true(technology_page.is_css_link_visible)
Assert.true(technology_page.is_apis_link_visible)
Assert.true(technology_page.is_svg_link_visible)
Assert.true(technology_page.is_security_link_visible)
@pytest.mark.nondestructive
def test_footer_section(self, mozwebqa):
technology_page = Technology(mozwebqa)
technology_page.go_to_page()
Assert.contains(technology_page.footer.expected_footer_logo_destination,
technology_page.footer.footer_logo_destination)
Assert.contains(technology_page.footer.expected_footer_logo_img,
technology_page.footer.footer_logo_img)
for link in Technology.Footer.footer_links_list:
url = technology_page.footer.footer_link_destination(link.get('locator'))
Assert.true(url.endswith(link.get('url_suffix')))
Assert.true(technology_page.is_valid_link(url))
@pytest.mark.nondestructive
def test_header_section(self, mozwebqa):
technology_page = Technology(mozwebqa)
technology_page.go_to_page()
Assert.true(technology_page.header.is_tabzilla_panel_visible)
technology_page.header.toggle_tabzilla_dropdown()
Assert.true(technology_page.header.are_tabzilla_links_visible)
@pytest.mark.nondestructive
def test_download_button_section(self, mozwebqa):
technology_page = Technology(mozwebqa)
technology_page.go_to_page()
Assert.true(technology_page.downloadRegion.is_download_link_visible)
Assert.true(technology_page.downloadRegion.are_secondary_links_visible)
Jump to Line
Something went wrong with that request. Please try again.