2020-09-13 21:39:44 +02:00
|
|
|
from .utils import TEST_URL
|
|
|
|
|
|
|
|
|
|
|
|
class TestIndex:
|
|
|
|
def test_title_contains_fittrackee(self, selenium):
|
|
|
|
selenium.get(TEST_URL)
|
|
|
|
assert 'FitTrackee' in selenium.title
|
|
|
|
|
|
|
|
def test_navbar_contains_all_links(self, selenium):
|
|
|
|
selenium.get(TEST_URL)
|
|
|
|
|
2021-10-31 21:04:47 +01:00
|
|
|
nav = selenium.find_element_by_id('nav').text
|
2020-09-13 21:39:44 +02:00
|
|
|
assert "FitTrackee" in nav
|
|
|
|
assert "Login" in nav
|
|
|
|
assert "Register" in nav
|