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

Add welcome screen disabling to common page #66713

Merged
merged 6 commits into from
May 27, 2020

Conversation

pheyos
Copy link
Member

@pheyos pheyos commented May 15, 2020

Summary

This PR adds logic to disable the welcome screen to the common_page which is already used in the x-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:

  1. Not all tests are using the x-pack security_page to login, but e.g. the login_page (former shield_page)
  2. Some tests start with navigateToApp and rely on the loginIfPrompted, 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 in afterTestSuite). But that doesn't work at this stage:

Storage is disabled inside 'data:' URLs.

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.

@pheyos pheyos added the release_note:skip Skip the PR/issue when compiling release notes label May 15, 2020
@pheyos
Copy link
Member Author

pheyos commented May 18, 2020

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

merge conflict between base and head

@pheyos pheyos changed the title Move welcome screen disabling to common page Add welcome screen disabling to common page May 18, 2020
@pheyos
Copy link
Member Author

pheyos commented May 25, 2020

@elasticmachine merge upstream

@pheyos pheyos requested a review from flash1293 May 25, 2020 15:05
@pheyos
Copy link
Member Author

pheyos commented May 25, 2020

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?
Anyway, I think it's not ideal to have login page handling in two different page objects.
What do you think?

@pheyos
Copy link
Member Author

pheyos commented May 27, 2020

@elasticmachine merge upstream

@dmlemeshko
Copy link
Member

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?
Anyway, I think it's not ideal to have login page handling in two different page objects.
What do you think?

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@pheyos pheyos merged commit dbbd090 into elastic:master May 27, 2020
@pheyos pheyos deleted the disable_welcome_screen branch May 27, 2020 11:11
pheyos added a commit to pheyos/kibana that referenced this pull request May 27, 2020
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
pheyos added a commit to pheyos/kibana that referenced this pull request May 27, 2020
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
pheyos added a commit that referenced this pull request May 27, 2020
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
pheyos added a commit that referenced this pull request May 27, 2020
This PR adds logic to disable the welcome screen to the common_page which is already used in the x-pack security_page.
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 test_ui_functional v7.8.0 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants