Added footer link tests. (#811)
This commit is contained in:
parent
fd71e7f957
commit
f99e4db25f
3 changed files with 39 additions and 3 deletions
14
test/integration/test_home.py
Normal file
14
test/integration/test_home.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
import pytest
|
||||
|
||||
from pages.desktop.base import Base
|
||||
|
||||
footer_links = ['mozilla', 'mozilla', 'about', 'legal', 'legal', 'cookies',
|
||||
'report-infringement']
|
||||
|
||||
|
||||
@pytest.mark.parametrize('i, name', enumerate(footer_links))
|
||||
def test_legal_links(selenium, base_url, i, name):
|
||||
"""Test links in footer load correct pages."""
|
||||
page = Base(selenium, base_url).open()
|
||||
page.footer.links[i].click()
|
||||
assert name in selenium.current_url
|
Loading…
Add table
Add a link
Reference in a new issue