Commit bd1b6f9e authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5TypeFunctionalTestCase: Rely on field ids rather than names.

Allows to keep UI tests working independently of the login process
implementation details.
parent f3719181
Pipeline #13213 passed with stage
in 0 seconds
......@@ -227,11 +227,11 @@ class FunctionalTestRunner:
browser.get(self._getTestBaseURL() + '/login_form')
login_field = WebDriverWait(browser, 10).until(
EC.presence_of_element_located((By.NAME, '__ac_name')),
EC.presence_of_element_located((By.ID, 'name')),
)
login_field.clear()
login_field.send_keys(self.user)
password_field = browser.find_element_by_name('__ac_password')
password_field = browser.find_element_by_id('password')
password_field.clear()
password_field.send_keys(self.password)
login_form_url = browser.current_url
......
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