Django 5: LogoutView must be called via POST now
Some checks failed
Run tests / Execute tox to run the test suite (push) Failing after 1m26s
Some checks failed
Run tests / Execute tox to run the test suite (push) Failing after 1m26s
This commit is contained in:
@@ -17,6 +17,10 @@ class SeleniumAuthMixin:
|
||||
return driver
|
||||
|
||||
def logout(self, driver):
|
||||
driver.get(self.complete_url(reverse('dav_auth:logout')))
|
||||
#driver.get(self.complete_url(reverse('dav_auth:logout')))
|
||||
dropdown_button = driver.find_element(By.ID, 'user_dropdown_button')
|
||||
dropdown_button.click()
|
||||
logout_button = driver.find_element(By.ID, 'id_logout_button')
|
||||
logout_button.click()
|
||||
self.wait_on_presence(driver, (By.CSS_SELECTOR, "#messages .alert-success"))
|
||||
return driver
|
||||
|
||||
Reference in New Issue
Block a user