Merge pull request #1336 from searxng/dependabot/pip/master/splinter-0.18.0

Bump splinter from 0.17.0 to 0.18.0
This commit is contained in:
Alexandre Flament 2022-06-18 08:37:25 +02:00 committed by GitHub
commit b41a685eb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -4,7 +4,7 @@ cov-core==1.15.0
black==22.3.0
pycodestyle==2.8.0
pylint==2.14.2
splinter==0.17.0
splinter==0.18.0
selenium==4.2.0
twine==4.0.1
Pallets-Sphinx-Themes==2.0.2

View file

@ -21,13 +21,13 @@ def test_404(browser):
def test_about(browser):
browser.visit(url)
browser.click_link_by_text('searxng')
browser.links.find_by_text('searxng').click()
assert browser.is_text_present('Why use it?')
def test_preferences(browser):
browser.visit(url)
browser.click_link_by_href('/preferences')
browser.links.find_by_href('/preferences').click()
assert browser.is_text_present('Preferences')
assert browser.is_text_present('COOKIES')
@ -36,7 +36,7 @@ def test_preferences(browser):
def test_preferences_engine_select(browser):
browser.visit(url)
browser.click_link_by_href('/preferences')
browser.links.find_by_href('/preferences').click()
assert browser.is_element_present_by_xpath('//label[@for="tab-engines"]')
browser.find_by_xpath('//label[@for="tab-engines"]').first.click()
@ -49,7 +49,7 @@ def test_preferences_engine_select(browser):
sleep(1)
browser.visit(url)
browser.click_link_by_href('/preferences')
browser.links.find_by_href('/preferences').click()
browser.find_by_xpath('//label[@for="tab-engines"]').first.click()
assert browser.find_by_xpath('//input[@id="engine_general_dummy__general"]').first.checked
@ -57,7 +57,7 @@ def test_preferences_engine_select(browser):
def test_preferences_locale(browser):
browser.visit(url)
browser.click_link_by_href('/preferences')
browser.links.find_by_href('/preferences').click()
browser.find_by_xpath('//label[@for="tab-ui"]').first.click()
browser.select('locale', 'fr')
@ -67,7 +67,7 @@ def test_preferences_locale(browser):
sleep(1)
browser.visit(url)
browser.click_link_by_href('/preferences')
browser.links.find_by_href('/preferences').click()
browser.is_text_present('Préférences')