Commit 493ea975 authored by Quentin Grimaud's avatar Quentin Grimaud Committed by Stéphane Glondu
Browse files

minor code quality improvements: rename a variable and add a comment

parent 2b5b7ec9
Pipeline #272330 passed with stages
in 62 minutes and 55 seconds
......@@ -659,8 +659,8 @@ def administrator_edits_election_questions(browser, nh_question=False):
nhtally_checkbox_element.click()
# She removes answer 3
question_to_remove = 3
remove_button_css_selector = ".question_answer_item:nth-child(" + str(question_to_remove) + ") .btn_remove"
candidate_to_remove = 3
remove_button_css_selector = ".question_answer_item:nth-child(" + str(candidate_to_remove) + ") .btn_remove"
remove_button_element = browser.find_element_by_css_selector(remove_button_css_selector)
remove_button_element.click()
......
......@@ -252,7 +252,7 @@ class NormalVoteStep2Page(NormalVoteGenericStepPage):
answers_elements[0].click()
if voter_vote_to_question_1_answer_2 and not voter_vote_to_question_1_answer_2_is_checked:
answers_elements[1].click()
else:
else: # this handles the case of non homomorphic questions
if voter_vote_to_question_1_answer_1:
question1_answer1_element.send_keys("1")
if voter_vote_to_question_1_answer_2:
......
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