summaryrefslogtreecommitdiff
path: root/tests/robot/test_webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-04-30 08:01:53 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-04-30 13:20:27 +0200
commite8541b6006cd6a00556957433c9de64c23ba0c84 (patch)
tree49ddcece5d7996816b3df0487ff93f8aa3797d27 /tests/robot/test_webapp.py
parent7ad03488781cb5ae4edac9530f15217fe246fe75 (diff)
downloadsearxng-e8541b6006cd6a00556957433c9de64c23ba0c84.tar.gz
searxng-e8541b6006cd6a00556957433c9de64c23ba0c84.zip
[theme] peel out oscar from SearXNG development
This is the first step of removing oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'tests/robot/test_webapp.py')
-rw-r--r--tests/robot/test_webapp.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/robot/test_webapp.py b/tests/robot/test_webapp.py
index cc1550c36..1009c6b70 100644
--- a/tests/robot/test_webapp.py
+++ b/tests/robot/test_webapp.py
@@ -10,7 +10,7 @@ url = "http://localhost:11111/"
def test_index(browser):
# Visit URL
browser.visit(url)
- assert browser.is_text_present('about')
+ assert browser.is_text_present('searxng')
def test_404(browser):
@@ -21,54 +21,54 @@ def test_404(browser):
def test_about(browser):
browser.visit(url)
- browser.click_link_by_text('about')
+ browser.click_link_by_text('searxng')
assert browser.is_text_present('Why use it?')
def test_preferences(browser):
browser.visit(url)
- browser.click_link_by_text('preferences')
+ browser.click_link_by_href('/preferences')
assert browser.is_text_present('Preferences')
- assert browser.is_text_present('Cookies')
+ assert browser.is_text_present('COOKIES')
assert browser.is_element_present_by_xpath('//label[@for="checkbox_dummy"]')
def test_preferences_engine_select(browser):
browser.visit(url)
- browser.click_link_by_text('preferences')
+ browser.click_link_by_href('/preferences')
- assert browser.is_element_present_by_xpath('//a[@href="#tab_engine"]')
- browser.find_by_xpath('//a[@href="#tab_engine"]').first.click()
+ assert browser.is_element_present_by_xpath('//label[@for="tab-engines"]')
+ browser.find_by_xpath('//label[@for="tab-engines"]').first.click()
assert not browser.find_by_xpath('//input[@id="engine_general_dummy__general"]').first.checked
browser.find_by_xpath('//label[@for="engine_general_dummy__general"]').first.check()
- browser.find_by_xpath('//input[@value="save"]').first.click()
+ browser.find_by_xpath('//input[@type="submit"]').first.click()
# waiting for the redirect - without this the test is flaky..
sleep(1)
browser.visit(url)
- browser.click_link_by_text('preferences')
- browser.find_by_xpath('//a[@href="#tab_engine"]').first.click()
+ browser.click_link_by_href('/preferences')
+ browser.find_by_xpath('//label[@for="tab-engines"]').first.click()
assert browser.find_by_xpath('//input[@id="engine_general_dummy__general"]').first.checked
def test_preferences_locale(browser):
browser.visit(url)
- browser.click_link_by_text('preferences')
+ browser.click_link_by_href('/preferences')
- browser.find_by_xpath('//a[@href="#tab_ui"]').first.click()
- browser.select('locale', 'hu')
- browser.find_by_xpath('//input[@value="save"]').first.click()
+ browser.find_by_xpath('//label[@for="tab-ui"]').first.click()
+ browser.select('locale', 'fr')
+ browser.find_by_xpath('//input[@type="submit"]').first.click()
# waiting for the redirect - without this the test is flaky..
sleep(1)
browser.visit(url)
- browser.click_link_by_text('beállítások')
- browser.is_text_present('Beállítások')
+ browser.click_link_by_href('/preferences')
+ browser.is_text_present('Préférences')
def test_search(browser):