diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-03-07 23:18:40 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-03-07 23:18:40 +0100 |
commit | 95002962eae89bf219a119bbf897a4818981d6bc (patch) | |
tree | 61e9cddf6e52a42998470da230f67ce144a2ec57 /tests | |
parent | 48f5e6b56174051a760e74d30bbe3a41a685c7dc (diff) | |
download | fietsboek-95002962eae89bf219a119bbf897a4818981d6bc.tar.gz fietsboek-95002962eae89bf219a119bbf897a4818981d6bc.tar.bz2 fietsboek-95002962eae89bf219a119bbf897a4818981d6bc.zip |
wait until accordion is expanded
Currently, the test seems flaky on CI due to
playwright._impl._api_types.Error: Clicking the checkbox did not
change its state
Maybe this is the change that will fix it?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/playwright/test_transformers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/playwright/test_transformers.py b/tests/playwright/test_transformers.py index d5bb3cf..d4f07e1 100644 --- a/tests/playwright/test_transformers.py +++ b/tests/playwright/test_transformers.py @@ -41,6 +41,7 @@ def test_transformer_zero_elevation_enabled(page: Page, playwright_helper, tmp_p extract_and_upload(page, "Synthetic_Zero_Elevation.gpx.gz", tmp_path) page.locator("#transformer-heading-1 .accordion-button").click() + page.locator("#transformer-1.collapse.show").wait_for() page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Upload").click() @@ -66,6 +67,7 @@ def test_transformer_zero_elevation_edited(page: Page, playwright_helper, tmp_pa page.locator(".btn", has_text="Edit").click() page.locator("#transformer-heading-1 .accordion-button").click() + page.locator("#transformer-1.collapse.show").wait_for() page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Save").click() @@ -103,6 +105,7 @@ def test_transformer_steep_slope_enabled(page: Page, playwright_helper, tmp_path extract_and_upload(page, "Synthetic_Steep_Slope.gpx.gz", tmp_path) page.locator("#transformer-heading-1 .accordion-button").click() + page.locator("#transformer-1.collapse.show").wait_for() page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Upload").click() @@ -128,6 +131,7 @@ def test_transformer_steep_slope_edited(page: Page, playwright_helper, tmp_path, page.locator(".btn", has_text="Edit").click() page.locator("#transformer-heading-1 .accordion-button").click() + page.locator("#transformer-1.collapse.show").wait_for() page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Save").click() |