diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-02-08 23:51:46 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-02-08 23:51:46 +0100 |
commit | db470d5f6f9c543a105ef34553beaa74870c3fa8 (patch) | |
tree | ad8d0283faa85ff3e613ba931ce82229621ca2b3 /tests | |
parent | 94f2f0758a79f797233cfd7e7db241e3eca2e700 (diff) | |
download | fietsboek-db470d5f6f9c543a105ef34553beaa74870c3fa8.tar.gz fietsboek-db470d5f6f9c543a105ef34553beaa74870c3fa8.tar.bz2 fietsboek-db470d5f6f9c543a105ef34553beaa74870c3fa8.zip |
fix transformer handling when uploading a file
Diffstat (limited to 'tests')
-rw-r--r-- | tests/playwright/conftest.py | 1 | ||||
-rw-r--r-- | tests/playwright/test_basic.py | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py index 18b7ad0..f57aca7 100644 --- a/tests/playwright/conftest.py +++ b/tests/playwright/conftest.py @@ -126,6 +126,7 @@ class Helper: tags=[], badges=[], tagged_people=[], + transformers=[], gpx_data=load_gpx_asset(track_name), ) self.dbaccess.commit() diff --git a/tests/playwright/test_basic.py b/tests/playwright/test_basic.py index 3b3329a..a98e52d 100644 --- a/tests/playwright/test_basic.py +++ b/tests/playwright/test_basic.py @@ -51,7 +51,7 @@ def test_upload(page: Page, playwright_helper, tmp_path, dbaccess): page.locator(".bi-upload").click() # We now fill in most of the data - page.get_by_label("Title").fill("An awesome track!") + page.get_by_label("Title", exact=True).fill("An awesome track!") page.get_by_label("Date").type("07302022") page.get_by_label("Date").press("Tab") page.get_by_label("Date").type("12:41") @@ -82,7 +82,7 @@ def test_edit(page: Page, playwright_helper, dbaccess): page.locator(".btn", has_text="Edit").click() # We now fill in most of the data - page.get_by_label("Title").fill("Not so awesome anymore!") + page.get_by_label("Title", exact=True).fill("Not so awesome anymore!") page.get_by_label("Date").type("09232019") page.get_by_label("Date").press("Tab") page.get_by_label("Date").type("15:28") |