nextcloud_tests.py: Increase timeout for NCP settings toggle test

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2023-10-21 13:19:21 +02:00
parent e78c39cbc8
commit 10867d1914
No known key found for this signature in database
GPG Key ID: 3510056072886A8F
2 changed files with 1 additions and 2 deletions

View File

@ -177,7 +177,6 @@ jobs:
sudo rm -rf raspbian_root
. ./build/buildlib.sh
mount_raspbian "ncp.img"
[[ -f raspbian_root/etc/machine-id ]] || sudo systemd-id128 new > ./raspbian_root/etc/machine-id
sudo cat raspbian_root/etc/machine-id
sudo systemd-id128 new | sudo tee ./raspbian_root/etc/machine-id
sudo wget -nv https://github.com/multiarch/qemu-user-static/releases/latest/download/qemu-aarch64-static -O raspbian_root/usr/bin/qemu-aarch64-static

View File

@ -246,7 +246,7 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver):
try:
li = next(filter(is_admin_notifications_checkbox, list_items))
li.find_element(By.TAG_NAME, "input").click()
time.sleep(5)
time.sleep(15)
wait.until(lambda drv: drv.find_element(By.CSS_SELECTOR, "#nextcloudpi .error-message:not(.hidden)"))
error_box = driver.find_element(By.CSS_SELECTOR, "#nextcloudpi .error-message")
test.check(False, str(error_box.text))