mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 07:02:30 +01:00
15 lines
448 B
Python
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
|