add selenium mock
This commit is contained in:
parent
322296d6a0
commit
bde94dbf4b
|
@ -64,6 +64,9 @@ integration-test:
|
||||||
TEST_HELM_REPO: https://gitlab.tt-rss.org/tt-rss/helm-charts/tt-rss
|
TEST_HELM_REPO: https://gitlab.tt-rss.org/tt-rss/helm-charts/tt-rss
|
||||||
extends: .integration-test
|
extends: .integration-test
|
||||||
script:
|
script:
|
||||||
|
- apk add py3-pip
|
||||||
|
- pip3 install selenium
|
||||||
|
- python3 tests/selenium.py
|
||||||
- sleep 5
|
- sleep 5
|
||||||
- curl -fs http://tt-rss-${CI_COMMIT_SHORT_SHA}-app/tt-rss/index.php | grep -q Login
|
- curl -fs http://tt-rss-${CI_COMMIT_SHORT_SHA}-app/tt-rss/index.php | grep -q Login
|
||||||
rules:
|
rules:
|
||||||
|
|
|
@ -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/wd/hub',
|
||||||
|
options=options
|
||||||
|
)
|
||||||
|
|
||||||
|
driver.get("http://tt-rss-latest-app.gitlab-fakecake.svc.cluster.local/tt-rss")
|
||||||
|
print(driver.page_source)
|
||||||
|
driver.quit()
|
||||||
|
|
Loading…
Reference in New Issue