FitTrackee/e2e/test_index.py

18 lines
467 B
Python
Raw Normal View History

2022-07-03 15:01:21 +02:00
from selenium.webdriver.common.by import By
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)
2022-07-03 15:01:21 +02:00
nav = selenium.find_element(By.ID, 'nav').text
assert "FitTrackee" in nav
assert "Login" in nav
assert "Register" in nav