mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix UI tests
This commit is contained in:
parent
4086628697
commit
3b237ed3cc
2 changed files with 15 additions and 9 deletions
|
|
@ -11,11 +11,19 @@ RUN GECKODRIVER_VERSION=`curl -i https://github.com/mozilla/geckodriver/releases
|
|||
chmod +x /usr/local/bin/geckodriver && \
|
||||
rm geckodriver.tar.gz
|
||||
|
||||
RUN wget https://github.com/bunkerity/bunkerweb-plugins/archive/refs/heads/main.zip && \
|
||||
unzip main.zip && \
|
||||
mv bunkerweb-plugins-main/discord . && \
|
||||
zip -r discord.zip discord && \
|
||||
rm -rf bunkerweb-plugins-main main.zip discord
|
||||
WORKDIR /opt/tests_ui
|
||||
|
||||
RUN echo '{ \
|
||||
"id": "discord", \
|
||||
"order": 999, \
|
||||
"name": "Discord", \
|
||||
"description": "Send alerts to a Discord channel (using webhooks).", \
|
||||
"version": "0.1", \
|
||||
"stream": "no", \
|
||||
"settings": {} \
|
||||
}' > plugin.json && \
|
||||
zip -r discord.zip plugin.json && \
|
||||
rm plugin.json
|
||||
|
||||
# Clean up
|
||||
RUN apk del .build-deps && \
|
||||
|
|
@ -23,8 +31,6 @@ RUN apk del .build-deps && \
|
|||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /$APP_HOME
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ try:
|
|||
"home",
|
||||
)
|
||||
|
||||
## HOME PAGE
|
||||
### HOME PAGE
|
||||
|
||||
print("Trying instances page ...", flush=True)
|
||||
|
||||
|
|
@ -933,7 +933,7 @@ try:
|
|||
external_plugins = safe_get_element(
|
||||
driver,
|
||||
By.XPATH,
|
||||
"//div[@data-plugins-external='external']",
|
||||
"//div[@data-plugins-external=' external ']",
|
||||
multiple=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue