Ejemplo n.º 1
0
def test_open_foundation_biography(base_url, selenium):
    page = LeadershipPage(selenium, base_url).open()
    leader = random.choice(page.foundation)
    modal = page.open_biography(leader)
    assert modal.is_displayed
    assert page.is_biography_displayed(leader)
    modal.close()
Ejemplo n.º 2
0
def test_open_foundation_biography(base_url, selenium):
    page = LeadershipPage(selenium, base_url).open()
    leader = random.choice(page.foundation)
    modal = page.open_biography(leader)
    assert modal.is_displayed
    assert page.is_biography_displayed(leader)
    next_leader = page.get_next_leader(leader, page.foundation)
    page.click_next()
    assert page.is_biography_displayed(next_leader)
    page.click_previous()
    assert page.is_biography_displayed(leader)
    modal.close()