Skip to content

Commit

Permalink
fix test with click on checkbox label
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Sep 19, 2024
1 parent fe914e8 commit bb80be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lemarche/www/auth/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _complete_form(self, user_profile: dict, signup_url=reverse("auth:signup"),

user_profile = user_profile.copy()
user_kind = user_profile.pop("id_kind")
self.driver.find_element(By.CSS_SELECTOR, f"input#id_kind_{user_kind}").click()
self.driver.find_element(By.CSS_SELECTOR, f"label[for='id_kind_{user_kind}']").click()
for key in user_profile:
self.driver.find_element(By.CSS_SELECTOR, f"input#id_{key}").send_keys(user_profile[key])
accept_rgpd_element = self.driver.find_element(By.CSS_SELECTOR, "input#id_accept_rgpd")
Expand Down

0 comments on commit bb80be8

Please sign in to comment.