mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-08 06:02:01 -03:30
nextcloud_tests.py: Fix settings check
This commit is contained in:
parent
a7cfdb08ed
commit
9c54a8a177
3
.github/workflows/build-sd-images.yml
vendored
3
.github/workflows/build-sd-images.yml
vendored
@ -155,7 +155,8 @@ jobs:
|
||||
run: |
|
||||
set -ex
|
||||
mkdir -p output
|
||||
wget -nv "${{ inputs.test_image_url }}" | pv -i 3 > "output/${ARTIFACT_FILE?}"
|
||||
sudo apt-get install -y pv
|
||||
wget -nv "${{ inputs.test_image_url }}" -O - | pv -n --bytes --rate --timer -i 3 > "output/${ARTIFACT_FILE?}"
|
||||
- name: Prepare test
|
||||
run: |
|
||||
set -x
|
||||
|
||||
@ -180,13 +180,12 @@ def test_nextcloud(IP: str, nc_port: str, driver: WebDriver, skip_release_check:
|
||||
test.report("password", "Wrong password" not in driver.page_source, msg="Failed to login with provided password")
|
||||
|
||||
test.new("settings config")
|
||||
wait = WebDriverWait(driver, 60 * wait_multiplier * 3)
|
||||
secwarn = driver.find_element(By.CSS_SELECTOR, "#security-warning.settings-section")
|
||||
if secwarn is None:
|
||||
settings_config_check_pre32(wait, test)
|
||||
else:
|
||||
wait = WebDriverWait(driver, 60 * wait_multiplier * 5)
|
||||
try:
|
||||
wait.until(VisibilityOfElementLocatedByAnyLocator([(By.CSS_SELECTOR, "#security-warning.settings-section")]))
|
||||
settings_config_check(wait, test)
|
||||
|
||||
except TimeoutException:
|
||||
settings_config_check_pre32(wait, test)
|
||||
|
||||
close_first_run_wizard(driver, wait_multiplier)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user