diff --git a/cadasta/templates/organization/project_add_wrapper.html b/cadasta/templates/organization/project_add_wrapper.html index 360184f0f..5ea23d0ac 100644 --- a/cadasta/templates/organization/project_add_wrapper.html +++ b/cadasta/templates/organization/project_add_wrapper.html @@ -60,7 +60,7 @@

{% block step_title %}{% endblock %}

{% block step_content_3 %}{% endblock %} diff --git a/functional_tests/pages/ProjectAdd.py b/functional_tests/pages/ProjectAdd.py index 900982248..257421aed 100644 --- a/functional_tests/pages/ProjectAdd.py +++ b/functional_tests/pages/ProjectAdd.py @@ -258,10 +258,7 @@ def check_details(self, details): assert self.get_proj_url() == details['url'] def click_submit_details(self): - submit_button = self.BY_XPATH( - "//input[contains(@class, 'btn-primary')" + - " and @value='Save and continue']" - ) + submit_button = self.BY_XPATH("//button[@type='submit']") submit_button.click() def try_submit_details(self): @@ -272,10 +269,7 @@ def try_submit_details(self): assert self.is_on_subpage('details') assert re.fullmatch('\s*', self.get_name()) is not None - submit_button = self.BY_XPATH( - "//input[contains(@class, 'btn-primary')" + - " and @value='Save and continue']" - ) + submit_button = self.BY_XPATH("//button[@type='submit']") error_wait = (By.CLASS_NAME, 'errorlist') self.test.click_through(submit_button, error_wait) assert self.is_on_subpage('details') @@ -289,10 +283,7 @@ def try_submit_details(self): def submit_details(self): assert self.is_on_subpage('details') - submit_button = self.BY_XPATH( - "//input[contains(@class, 'btn-primary')" + - " and @value='Save and continue']" - ) + submit_button = self.BY_XPATH("//button[@type='submit']") next_header = "Assign permissions to members" xpath = "//h3[text()='{}']".format(next_header) set_perms_wait = (By.XPATH, xpath) diff --git a/requirements/common.txt b/requirements/common.txt index 5edfca0c0..82a808310 100644 --- a/requirements/common.txt +++ b/requirements/common.txt @@ -19,7 +19,7 @@ django-audit-log==0.7.0 django-simple-history==1.8.1 simplejson==3.8.1 django-widget-tweaks==1.4.1 -django-buckets==0.1.12 +django-buckets==0.1.13 pyxform-cadasta==0.9.22 python-magic==0.4.11 Pillow==3.2.0