-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Add welcome screen disabling to common page #66713
Conversation
@elasticmachine merge upstream |
merge conflict between base and head |
@elasticmachine merge upstream |
Thinking a bit more about it, I'm wondering, why we have the OSS login_page in addition to the x-pack security_page. I thought it's not possible to have security enabled on OSS, or did that change? |
@elasticmachine merge upstream |
I think that PO is under OSS because we do run oss tests for trial license. We recently discussed in QA sync that having several page objects is really confusing, I think @LeeDr is working on improvement. |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
Summary
This PR adds logic to disable the welcome screen to the
common_page
which is already used in thex-pack
security_page
.Background / history
Thanks @flash1293 for helping with the investigation and finding a working solution!
Some time ago functionality was added to disable the welcome screen in functional tests (#58371). But in recent cloud production tests a few test failures around a displayed welcome page occurred. An investigation revealed two issues:
x-pack
security_page
to login, but e.g. the login_page (former shield_page)navigateToApp
and rely on theloginIfPrompted
, which doesn't always lead to a new login. But the local storage is still cleared between suites, so the welcome screen comes up again.In terms of where to put additional disable logic, the first idea was to do it in the
beforeTestSuite
(similar to the storage clean inafterTestSuite
). But that doesn't work at this stage:So we need a place where some page is already loaded but the login / initial navigation is not done yet. Although it's not ideal, the
loginIfPrompted
seems to be a place that works.