-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
10 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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
from selenium import webdriver | ||
from selenium.webdriver.common.by import By | ||
from selenium.webdriver.firefox.options import Options | ||
from selenium.webdriver.support.select import Select | ||
|
||
from lemarche.users.factories import DEFAULT_PASSWORD, UserFactory | ||
from lemarche.users.models import User | ||
|
@@ -28,7 +27,7 @@ | |
"first_name": "Prenom", | ||
"last_name": "Nom", | ||
"phone": "012345678", | ||
# "buyer_kind_detail": "PRIVATE_BIG_CORP", | ||
"buyer_kind_detail": "PRIVATE_BIG_CORP", | ||
"company_name": "Ma boite", | ||
"position": "Role important", | ||
"email": "[email protected]", | ||
|
@@ -181,19 +180,12 @@ def test_siae_submits_signup_form_error(self): | |
def test_buyer_submits_signup_form_success(self): | ||
self._complete_form(user_profile=BUYER, with_submit=False) | ||
|
||
buyer_kind_detail_select_element = self.driver.find_element(By.CSS_SELECTOR, "select#id_buyer_kind_detail") | ||
buyer_kind_detail_select = Select(buyer_kind_detail_select_element) | ||
scroll_to_and_click_element(self.driver, buyer_kind_detail_select_element, click=False) | ||
buyer_kind_detail_select.select_by_visible_text("Grand groupe (+5000 salariés)") | ||
|
||
submit_element = self.driver.find_element(By.CSS_SELECTOR, "form button[type='submit']") | ||
scroll_to_and_click_element(self.driver, submit_element) | ||
|
||
# should redirect BUYER to search | ||
self._assert_signup_success(redirect_url=reverse("siae:search_results")) | ||
|
||
def test_buyer_submits_signup_form_success_extra_data(self): | ||
self._complete_form(user_profile=BUYER, with_submit=False) | ||
|
||
nb_of_handicap = "3" | ||
nb_of_inclusive = "4" | ||
nb_of_handicap_provider_2022_element = self.driver.find_element( | ||
|