Commit 7824c126 authored by Stephane Glondu's avatar Stephane Glondu

Fix scenario 2 test (tallying)

parent c08b395f
Pipeline #60110 passed with stages
in 16 minutes and 49 seconds
...@@ -453,7 +453,7 @@ The election administrator.\ ...@@ -453,7 +453,7 @@ The election administrator.\
# She remembers the link to send to each trustee, so they can tally the election # She remembers the link to send to each trustee, so they can tally the election
self.closed_election_tally_links_for_trustees = [] self.closed_election_tally_links_for_trustees = []
for idx, email_address in enumerate(settings.TRUSTEES_EMAIL_ADDRESSES): for idx, email_address in enumerate(settings.TRUSTEES_EMAIL_ADDRESSES):
trustee_link_css_selector = "#main table tr:nth-child(" + str(idx + 2) + ") td:nth-child(3) a" trustee_link_css_selector = "#main table tr:nth-child(" + str(idx + 3) + ") td:nth-child(3) a"
trustee_link_element = wait_for_element_exists_and_has_non_empty_content(browser, trustee_link_css_selector) trustee_link_element = wait_for_element_exists_and_has_non_empty_content(browser, trustee_link_css_selector)
self.closed_election_tally_links_for_trustees.append(trustee_link_element.get_attribute('href')) self.closed_election_tally_links_for_trustees.append(trustee_link_element.get_attribute('href'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment