updated to work again with instructions
This commit is contained in:
@ -59,6 +59,7 @@ class ActivitiesTab(BaseTester):
|
||||
Using MP's as MP's are public knowledge and often have activities within the crm system
|
||||
names provided in comments here for debugging purposes
|
||||
"""
|
||||
# There where originally MP's but this seems to have changes to just random people. Still works fine but it is weird
|
||||
cid_da = "42219" # Debbie Abrahams
|
||||
cid_kh = "82163" # Kate Hollern
|
||||
cid_na = "42269" # Nigel Addams
|
||||
|
@ -35,13 +35,13 @@ class BaseTester:
|
||||
self.user = user
|
||||
self.passwd = passwd
|
||||
if dev:
|
||||
self.base_url = "https://crm-dev.caat.org.uk"
|
||||
self.base_url = "https://crm.staging.caat.org.uk"
|
||||
else:
|
||||
self.base_url = "https://crm.caat.org.uk"
|
||||
self.base_url = "https://crm.staging.caat.org.uk"
|
||||
|
||||
firefox_options = webdriver.FirefoxOptions()
|
||||
firefox_options = webdriver.ChromeOptions()
|
||||
firefox_options.headless = not show_browser
|
||||
self.browser = webdriver.Firefox(options=firefox_options)
|
||||
self.browser = webdriver.Chrome(options=firefox_options)
|
||||
self.wait = WebDriverWait(self.browser, 20)
|
||||
|
||||
def debug(self, msg: str):
|
||||
|
@ -14,7 +14,9 @@ class ContactExport(SearchExportTester):
|
||||
self.desc(
|
||||
"Testing if exporting contacts from a search returns a CSV file with all expected contacts."
|
||||
)
|
||||
self.contact_exportoption_id = "select2-result-label-15"
|
||||
# FIXME: THIS FUCKING CHANGES!!!!!!
|
||||
# If you are having issues with the tests, go back and try and find the id for the item in the drop down. its all stupid js so we have to hack it like this and press it instead of post request
|
||||
self.contact_exportoption_id = "select2-result-label-13"
|
||||
|
||||
def download_csv(self):
|
||||
# Data of the request that is specific for this export and not generic like qr_key
|
||||
@ -78,5 +80,5 @@ class ContactExport(SearchExportTester):
|
||||
|
||||
def test_hardcoded_search_terms(self):
|
||||
"""Loops over the test with three hardcoded search terms"""
|
||||
search_terms = ("John", "e", "Smith")
|
||||
search_terms = ("John", "Jane", "Smith")
|
||||
self._test_all(search_terms)
|
||||
|
@ -16,7 +16,10 @@ class SteeringCommitteePrintLabels(SearchExportTester):
|
||||
)
|
||||
self.group_dropdown = "s2id_autogen2"
|
||||
self.search_button = "_qf_Basic_refresh"
|
||||
self.mail_label_option = "select2-result-label-19"
|
||||
# FIXME: THIS FUCKING CHANGES!!!!!!
|
||||
# If you are having issues with the tests, go back and try and find the id for the item in the drop down. its all stupid js so we have to hack it like this and press it instead of post request
|
||||
# Even in the post requests, actions are given IDs instead. Which change apparently!!!!! WTFFF!!!
|
||||
self.mail_label_option = "select2-result-label-17"
|
||||
# Using this to count amount of people in the exported pdf
|
||||
# This will fail if someone is added that doesn't have a UK adddress
|
||||
self.pdf_search_string = "UNITED KINGDOM"
|
||||
|
Reference in New Issue
Block a user