Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix logout in drupal 10.3.x #671

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ol0lll
Copy link

@ol0lll ol0lll commented Jul 4, 2024

A new logout confirmation step was introduced in drupal 10.3.x, see https://www.drupal.org/project/drupal/issues/144538.

@@ -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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just check if the element exist first? So that it's compatible with versions before 10.3 and after?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants