-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix date-related Resources test errors; do other fixes (#87)
- Loading branch information
1 parent
f78a33d
commit 81c4bde
Showing
11 changed files
with
118 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.6.0' | ||
__version__ = '0.6.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,11 @@ def test_user_can_create_an_org(self): | |
assert self.get_url_path() == expected_path | ||
self.wd.BY_XPATH('//h1[contains(.,"{}")]'.format(name)) | ||
about = self.wd.BY_CLASS('panel-about') | ||
about.find_element_by_xpath('//*[.="Organization description."]') | ||
about.find_element_by_xpath('//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('//*[@href="tel:1234567890"]') | ||
about.find_element_by_xpath('.//*[.="Organization description."]') | ||
about.find_element_by_xpath('.//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('.//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('.//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('.//*[@href="tel:1234567890"]') | ||
self.wd.BY_XPATH('//*[contains(.,"Now add your first project.")]') | ||
|
||
def test_name_is_required(self): | ||
|
@@ -141,7 +141,7 @@ def test_contact_name_is_required(self): | |
self.update_form_field('contacts-0-tel', '1234567890') | ||
self.click_save_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="Please provide a name."]') | ||
'.//*[.="Please provide a name."]') | ||
|
||
def test_contact_email_or_phone_is_required(self): | ||
"""Verifies Organizations test case #C9.""" | ||
|
@@ -155,7 +155,7 @@ def test_contact_email_or_phone_is_required(self): | |
self.update_form_field('contacts-0-name', 'Contact Person') | ||
self.click_save_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="Please provide either an email address ' | ||
'.//*[.="Please provide either an email address ' | ||
'or a phone number."]') | ||
|
||
def test_invalid_contact_email_address_is_rejected(self): | ||
|
@@ -172,4 +172,4 @@ def test_invalid_contact_email_address_is_rejected(self): | |
self.update_form_field('contacts-0-tel', '1234567890') | ||
self.click_save_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="This field should be a valid email."]') | ||
'.//*[.="This field should be a valid email."]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,11 +71,11 @@ def test_org_admin_can_create_public_project(self): | |
assert self.get_url_path() == expected_path | ||
self.wd.BY_XPATH('//h1[contains(.,"{}")]'.format(name)) | ||
about = self.wd.BY_CLASS('panel-about') | ||
about.find_element_by_xpath('//*[.="Project description."]') | ||
about.find_element_by_xpath('//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('//*[@href="tel:1234567890"]') | ||
about.find_element_by_xpath('.//*[.="Project description."]') | ||
about.find_element_by_xpath('.//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('.//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('.//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('.//*[@href="tel:1234567890"]') | ||
|
||
def test_org_admin_can_create_private_project(self): | ||
"""Verifies Projects test case #C2.""" | ||
|
@@ -103,11 +103,11 @@ def test_org_admin_can_create_private_project(self): | |
self.wd.BY_XPATH( | ||
'//h1[contains(normalize-space(),"{} Private")]'.format(name)) | ||
about = self.wd.BY_CLASS('panel-about') | ||
about.find_element_by_xpath('//*[.="Project description."]') | ||
about.find_element_by_xpath('//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('//*[@href="tel:1234567890"]') | ||
about.find_element_by_xpath('.//*[.="Project description."]') | ||
about.find_element_by_xpath('.//*[@href="http://example.com"]') | ||
about.find_element_by_xpath('.//*[text()="Contact Person"]') | ||
about.find_element_by_xpath('.//*[@href="mailto:[email protected]"]') | ||
about.find_element_by_xpath('.//*[@href="tel:1234567890"]') | ||
|
||
def test_non_org_admin_cannot_create_project(self, org_member): | ||
"""Verifies Projects test case #C3.""" | ||
|
@@ -138,7 +138,7 @@ def test_extent_description_url_contacts_is_not_required(self): | |
assert self.get_url_path() == expected_path | ||
self.wd.BY_XPATH('//h1[contains(.,"{}")]'.format(name)) | ||
self.wd.BY_CLASS('panel-about').find_element_by_xpath( | ||
'//*[contains(.,"This project needs a description.")]') | ||
'.//*[contains(.,"This project needs a description.")]') | ||
|
||
def test_org_is_required(self): | ||
"""Verifies Projects test case #C5.""" | ||
|
@@ -227,7 +227,7 @@ def test_contact_name_is_required(self): | |
self.update_form_field('details-contacts-0-tel', '1234567890') | ||
self.click_wizard_next_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="Please provide a name."]') | ||
'.//*[.="Please provide a name."]') | ||
|
||
def test_contact_email_or_phone_is_required(self): | ||
"""Verifies Projects test case #C14.""" | ||
|
@@ -242,7 +242,7 @@ def test_contact_email_or_phone_is_required(self): | |
self.update_form_field('details-contacts-0-name', 'Contact Person') | ||
self.click_wizard_next_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="Please provide either an email address ' | ||
'.//*[.="Please provide either an email address ' | ||
'or a phone number."]') | ||
|
||
def test_invalid_contact_email_address_is_rejected(self): | ||
|
@@ -260,4 +260,4 @@ def test_invalid_contact_email_address_is_rejected(self): | |
self.update_form_field('details-contacts-0-tel', '1234567890') | ||
self.click_wizard_next_button() | ||
self.wd.BY_CLASS('contacts-form').find_element_by_xpath( | ||
'//*[.="This field should be a valid email."]') | ||
'.//*[.="This field should be a valid email."]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.