diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-03-07 22:58:04 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-03-07 22:58:04 +0100 |
commit | 48f5e6b56174051a760e74d30bbe3a41a685c7dc (patch) | |
tree | 498aa159e833b8cef997090d01b4f4f143f1f6fb | |
parent | e3e526cbdab4f3c7408a846d15ff7d7edfe27016 (diff) | |
download | fietsboek-48f5e6b56174051a760e74d30bbe3a41a685c7dc.tar.gz fietsboek-48f5e6b56174051a760e74d30bbe3a41a685c7dc.tar.bz2 fietsboek-48f5e6b56174051a760e74d30bbe3a41a685c7dc.zip |
tests: use .check() instead of .click()
This gets the intent across clearer
-rw-r--r-- | tests/playwright/test_transformers.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/playwright/test_transformers.py b/tests/playwright/test_transformers.py index a7638a0..d5bb3cf 100644 --- a/tests/playwright/test_transformers.py +++ b/tests/playwright/test_transformers.py @@ -41,7 +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-enabled-1").click() + page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Upload").click() @@ -66,7 +66,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-enabled-1").click() + page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Save").click() @@ -103,7 +103,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-enabled-1").click() + page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Upload").click() @@ -128,7 +128,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-enabled-1").click() + page.locator("#transformer-enabled-1").check() page.locator(".btn", has_text="Save").click() |