From dd442b7b017e1f71a914c8c03646b55f4225d39d Mon Sep 17 00:00:00 2001 From: Killesreiter Volker Date: Thu, 4 Jul 2024 14:55:44 +0200 Subject: [PATCH] click log_out button on confirm form --- .../DrupalExtension/Manager/DrupalAuthenticationManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Drupal/DrupalExtension/Manager/DrupalAuthenticationManager.php b/src/Drupal/DrupalExtension/Manager/DrupalAuthenticationManager.php index 2b5ee3f3..3a12fb03 100644 --- a/src/Drupal/DrupalExtension/Manager/DrupalAuthenticationManager.php +++ b/src/Drupal/DrupalExtension/Manager/DrupalAuthenticationManager.php @@ -103,6 +103,7 @@ public function logIn(\stdClass $user) public function logout() { $this->getSession()->visit($this->locatePath($this->getDrupalText('logout_url'))); + $this->getSession()->getPage()->findButton($this->getDrupalText('log_out'))->click(); $this->userManager->setCurrentUser(false); // Log the user out on the backend if possible.