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

Additional changes for x-pack/test/banners_functional #136032

Closed
wants to merge 2 commits into from

Conversation

LeeDr
Copy link

@LeeDr LeeDr commented Jul 8, 2022

Summary

ref: #135783
This PR was my attempt at fixing the tests in #135783. It looks like the x-pack/test/banners_functional tests haven't ever been running in CI. They are currently in the list of configs that don't run here https://github.com/elastic/kibana/blob/main/.buildkite/ftr_configs.yml#L52

When I tried to run them locally I hit several problems;

  1. the setAdvancedSettingsTextArea in settings_page wasn't working. The save button didn't appear. In this PR I've added another setFocus and send the return key and that seems to get the save button to appear. But it was still flaky so I changed the test to set the banner via the ui settings API
  2. The test was setting a custom route, but I couldn't see any reason for that.
  3. if it's creating the space via the api, I don't think it even needs the kbn_archive
  4. the last test indicates the space selection page would show a default banner (the same as a new space would get) but in reality, Kibana shows the banner from the default space.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

wayneseymour and others added 2 commits July 6, 2022 10:33
I've the before() fn loading the new kbn archive
containing one config, for the default space.
Then, the fn creates a new space and changes the ui settings of this new space,
w/o using an archive.
@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 8, 2022

💔 Build Failed

Failed CI Steps

Metrics [docs]

✅ unchanged

History

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

@lukeelmers lukeelmers closed this Mar 27, 2024
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.

4 participants