openvpn: tests: functional: Use newer splinter API for finding links

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2021-09-18 17:26:30 -07:00 committed by Veiko Aasa
parent 68a6427b19
commit f759275b0e
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -26,7 +26,7 @@ def openvpn_profile_downloadable(session_browser):
@then('openvpn app should not be visible on the front page')
def openvpn_app_not_on_front_page(session_browser):
session_browser.visit(base_url)
links = session_browser.find_link_by_href(shortcut_href)
links = session_browser.links.find_by_href(shortcut_href)
assert len(links) == 0