From 9bb7089438aa002e64b9939333d5d16d09820fe2 Mon Sep 17 00:00:00 2001 From: lc_hd Date: Thu, 24 Oct 2024 18:15:48 -0400 Subject: [PATCH] feat: modified data in form --- .github/workflows/run_testcases.yml | 2 +- .../functional/test_create_community_gis_ui.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run_testcases.yml b/.github/workflows/run_testcases.yml index 67844707c..ed9ed7923 100644 --- a/.github/workflows/run_testcases.yml +++ b/.github/workflows/run_testcases.yml @@ -64,4 +64,4 @@ jobs: run: | python manage.py migrate flake8 accounts notifications localcontexts - pytest -k test_clicking_upload_shapefile_on_nld_page_navigates_to_upload_shapefile_page + pytest -k test_clicking_upload_shapefile_on_nld_page_navigates_to_upload_shapefile_page --capture=no \ No newline at end of file diff --git a/tests/functional/test_create_community_gis_ui.py b/tests/functional/test_create_community_gis_ui.py index 82cb9401e..8cbc7d9cb 100644 --- a/tests/functional/test_create_community_gis_ui.py +++ b/tests/functional/test_create_community_gis_ui.py @@ -35,15 +35,15 @@ def fill_out_and_submit_account_creation_form(self): self.community_name = self.fake.name() # fill out form - self.py.get("[name='first_name']").type('test') - self.py.get("[name='last_name']").type('account') - self.py.get("[name='community_name']").type(self.community_name) - self.py.get("[name='community_entity']").type('a') - self.py.get("[name='state_province_region']").type('a') + self.py.get("[name='first_name']").type(self.community_name) + self.py.get("[name='last_name']").type(self.fake.name()) + self.py.get("[name='community_name']").type(self.fake.name()) + self.py.get("[name='community_entity']").type(self.fake.name()) + self.py.get("[name='state_province_region']").type(self.fake.name()) self.py.get("[name='country']").type('Antartica') self.py.get("#id_description").type('a') self.py.get("[name='contact_name']").type('Test User') - self.py.get("#communityContactEmailField").type('Test@test.com') + self.py.get("#communityContactEmailField").type(self.fake.email()) # submit form time.sleep(10) @@ -84,7 +84,7 @@ def navigate_to_search_native_land_digital_database_page(self): # click accept cookies button time.sleep(5) # wait for accept banner to appear self.accept_cookies() - + time.sleep(15) self.fill_out_and_submit_account_creation_form() # verify user is on select add boundary method page @@ -100,11 +100,10 @@ def navigate_to_upload_shapefile_page(self): self.py.visit(create_community_url) # click accept cookies button - time.sleep(5) # wait for accept banner to appear + time.sleep(20) # wait for accept banner to appear self.accept_cookies() self.fill_out_and_submit_account_creation_form() - time.sleep(5) # wait for response # verify user is on select add boundary method page assert self.select_add_boundary_method_path in self.get_current_url()