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_pagewhich is already used in thex-packsecurity_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-packsecurity_pageto login, but e.g. the login_page (former shield_page)navigateToAppand 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
loginIfPromptedseems to be a place that works.