1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-13 14:42:38 +01:00
send/test/integration/test_home.py
2018-04-27 15:44:03 -04:00

15 lines
448 B
Python

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