mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 06:32:00 -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: |
|
run: |
|
||||||
set -ex
|
set -ex
|
||||||
mkdir -p output
|
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
|
- name: Prepare test
|
||||||
run: |
|
run: |
|
||||||
set -x
|
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.report("password", "Wrong password" not in driver.page_source, msg="Failed to login with provided password")
|
||||||
|
|
||||||
test.new("settings config")
|
test.new("settings config")
|
||||||
wait = WebDriverWait(driver, 60 * wait_multiplier * 3)
|
wait = WebDriverWait(driver, 60 * wait_multiplier * 5)
|
||||||
secwarn = driver.find_element(By.CSS_SELECTOR, "#security-warning.settings-section")
|
try:
|
||||||
if secwarn is None:
|
wait.until(VisibilityOfElementLocatedByAnyLocator([(By.CSS_SELECTOR, "#security-warning.settings-section")]))
|
||||||
settings_config_check_pre32(wait, test)
|
|
||||||
else:
|
|
||||||
settings_config_check(wait, test)
|
settings_config_check(wait, test)
|
||||||
|
except TimeoutException:
|
||||||
|
settings_config_check_pre32(wait, test)
|
||||||
|
|
||||||
close_first_run_wizard(driver, wait_multiplier)
|
close_first_run_wizard(driver, wait_multiplier)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user