From 382d01e8db053023d4e461e535d6cc49c7ecc76f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 22 Oct 2023 11:19:56 +0300 Subject: update test filename --- .gitlab-ci.yml | 4 +--- tests/selenium.py | 15 --------------- tests/selenium/test.py | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 18 deletions(-) delete mode 100644 tests/selenium.py create mode 100644 tests/selenium/test.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 314791358..0c9bd93a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,9 +66,7 @@ integration-test: script: - apk add py3-pip - pip3 install selenium - - python3 tests/selenium.py - - sleep 5 - - curl -fs http://tt-rss-${CI_COMMIT_SHORT_SHA}-app/tt-rss/index.php | grep -q Login + - python3 tests/selenium/test.py rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH diff --git a/tests/selenium.py b/tests/selenium.py deleted file mode 100644 index 3b101cd40..000000000 --- a/tests/selenium.py +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/python3 - -from selenium import webdriver - -options = webdriver.ChromeOptions() - -driver = webdriver.Remote( - command_executor='http://selenium-hub.selenium-grid.svc.cluster.local/wd/hub', - options=options -) - -driver.get("http://tt-rss-latest-app.gitlab-fakecake.svc.cluster.local/tt-rss") -print(driver.page_source) -driver.quit() - diff --git a/tests/selenium/test.py b/tests/selenium/test.py new file mode 100644 index 000000000..b1576cac1 --- /dev/null +++ b/tests/selenium/test.py @@ -0,0 +1,15 @@ +#!/usr/bin/python3 + +from selenium import webdriver + +options = webdriver.ChromeOptions() + +driver = webdriver.Remote( + command_executor='http://selenium-hub.selenium-grid.svc.cluster.local:4444/wd/hub', + options=options +) + +driver.get("http://tt-rss-latest-app.gitlab-fakecake.svc.cluster.local/tt-rss") +print(driver.page_source) +driver.quit() + -- cgit v1.2.3