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

[FieldFormats] Add editors tests #107770

Merged
merged 6 commits into from
Aug 10, 2021

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Aug 5, 2021

Summary

Close #59567

As per #59567 field formats editors didn't have many tests. This pr adds functional tests for field formats editors focusing on specific field formats editing capabilities and not focusing on string conversions part (this part is covered by functional tests).

This tries to test different combinations of field editors for different field types with different options. Of course it won't cover every possible combination, but the sample is pretty extensive and better then nothing

Each test roughly looks like this:

  1. Index a sample field with a specific value of a specific type into elasticsearch. Create an index pattern.
  2. Add formatting for a field: Check available format editors. Add a formatter with options if available
  3. Check that formatter is applied in discover app

@Dosant Dosant changed the title wip [FieldFormats] Add editors tests Aug 9, 2021
@Dosant Dosant added Feature:FieldFormatters release_note:skip Skip the PR/issue when compiling release notes Team:AppServices v7.15.0 v8.0.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Aug 9, 2021
await esArchiver.emptyKibanaIndex();
});

describe('set and change field formatter', function describeIndexTests() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this test existed before. Displayed as new because of .js -> .ts conversion

@Dosant Dosant marked this pull request as ready for review August 9, 2021 18:02
@Dosant Dosant requested a review from a team as a code owner August 9, 2021 18:02
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@Dosant Dosant requested a review from mattkime August 9, 2021 18:03
Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

Nice work, changes look good!

@Dosant
Copy link
Contributor Author

Dosant commented Aug 10, 2021

@elasticmachine merge upstream

@Dosant Dosant enabled auto-merge (squash) August 10, 2021 11:20
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexPatternFieldEditor 169.6KB 170.4KB +817.0B

History

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

@Dosant Dosant merged commit 6450df1 into elastic:master Aug 10, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 107770

Dosant added a commit to Dosant/kibana that referenced this pull request Aug 10, 2021
# Conflicts:
#	test/common/services/index.ts
Dosant added a commit that referenced this pull request Aug 10, 2021
# Conflicts:
#	test/common/services/index.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:FieldFormatters release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functional UI tests on field formatters on index pattern management page is missing
4 participants