Skip to content

Conversation

@kobelb
Copy link
Contributor

@kobelb kobelb commented Dec 12, 2019

PageObjects.security.logout requires that the user menu be rendered fully for the user to be able to click the "logout" button. This is problematic when used in before/after methods, and can lead to tests failing for weird reasons. PageObjects.security.forceLogout redirects the user directly to the /logout page so even if the page hasn't fully loaded, we can still log the user out.

We're still using logout within the security test which ensures logout is working properly, just not for "test setup" in all of these other situations.

@kobelb kobelb requested a review from a team as a code owner December 12, 2019 17:15
@kobelb kobelb added release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v7.6.0 labels Dec 12, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kobelb kobelb requested a review from spalger December 12, 2019 20:34
Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

ML changes LGTM

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM

@kobelb kobelb merged commit c891219 into elastic:master Dec 13, 2019
@kobelb kobelb deleted the fix/force-logout branch December 13, 2019 15:09
kobelb added a commit that referenced this pull request Dec 13, 2019
* Changing usages of .logout() to .forceLogout()

* Using `.logout` from within the security login page test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants