Functional tests: convert more test/services to TS#45176
Merged
dmlemeshko merged 7 commits intoelastic:masterfrom Sep 11, 2019
Merged
Functional tests: convert more test/services to TS#45176dmlemeshko merged 7 commits intoelastic:masterfrom
dmlemeshko merged 7 commits intoelastic:masterfrom
Conversation
dmlemeshko
commented
Sep 9, 2019
dmlemeshko
commented
Sep 9, 2019
Contributor
💔 Build Failed |
ea00f95 to
b9eb1ad
Compare
Contributor
💚 Build Succeeded |
Contributor
Author
|
retest |
dmlemeshko
commented
Sep 10, 2019
Contributor
💚 Build Succeeded |
b9eb1ad to
7091caa
Compare
Contributor
💚 Build Succeeded |
Co-Authored-By: Tre' <wayne.seymour@elastic.co>
Contributor
wayneseymour
left a comment
There was a problem hiding this comment.
Great work @dmlemeshko , lemme know if we need to zoom or discuss the type signatures.
| const testSubjects = getService('testSubjects'); | ||
| import { FtrProviderContext } from '../ftr_provider_context'; | ||
|
|
||
| export function FilterBarProvider({ getService, getPageObjects }: FtrProviderContext) { |
Contributor
There was a problem hiding this comment.
Suggested change
| export function FilterBarProvider({ getService, getPageObjects }: FtrProviderContext) { | |
| export function FilterBarProvider({ getService, getPageObjects }: FtrProviderContext): InstanceType<FilterBar> { |
Again, not sure if this is how to properly type a factory function in TS.
| export function FlyoutProvider({ getService }) { | ||
| import { FtrProviderContext } from '../ftr_provider_context'; | ||
|
|
||
| export function FlyoutProvider({ getService }: FtrProviderContext) { |
Contributor
There was a problem hiding this comment.
Suggested change
| export function FlyoutProvider({ getService }: FtrProviderContext) { | |
| export function FlyoutProvider({ getService }: FtrProviderContext): InstanceType<typeof Flyout> { |
Maybe?
| const DATA_LOADING_SELECTOR = '[data-loading]'; | ||
|
|
||
| export function RenderableProvider({ getService }) { | ||
| export function RenderableProvider({ getService }: FtrProviderContext) { |
Contributor
There was a problem hiding this comment.
Suggested change
| export function RenderableProvider({ getService }: FtrProviderContext) { | |
| export function RenderableProvider({ getService }: FtrProviderContext): InstanceType<typeof Renderable> { |
| throw new Error(`${ | ||
| completedElements.length | ||
| } elements completed rendering, still waiting on a total of ${count} | ||
| specifically:\n${pendingElementNames.join('\n')}`); |
Contributor
There was a problem hiding this comment.
I'm curious, did prettier or eslint cause this formatting?
Not interested in bikeshedding on formatting, but it seemed peculiar.
| export function VisualizeListingTableProvider({ getService, getPageObjects }) { | ||
| import { FtrProviderContext } from '../ftr_provider_context'; | ||
|
|
||
| export function VisualizeListingTableProvider({ getService, getPageObjects }: FtrProviderContext) { |
Contributor
There was a problem hiding this comment.
Suggested change
| export function VisualizeListingTableProvider({ getService, getPageObjects }: FtrProviderContext) { | |
| export function VisualizeListingTableProvider({ getService, getPageObjects }: FtrProviderContext): InstanceType<typeof VisualizeListingTable> { |
Co-Authored-By: Tre' <wayne.seymour@elastic.co>
Co-Authored-By: Tre' <wayne.seymour@elastic.co>
spalger
approved these changes
Sep 10, 2019
Contributor
spalger
left a comment
There was a problem hiding this comment.
IMO, specifying explicit return values when they can be inferred is unnecessary. But changes LGTM
…o tsfy-test-services
Contributor
💔 Build Failed |
Contributor
💚 Build Succeeded |
Contributor
|
LGTM |
dmlemeshko
added a commit
to dmlemeshko/kibana
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
dmlemeshko
added a commit
to dmlemeshko/kibana
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
dmlemeshko
added a commit
to dmlemeshko/kibana
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Sep 11, 2019
…-to-np-ready * 'master' of github.com:elastic/kibana: Upgrade EUI to 13.8.1 (elastic#45052) [ML] Add multi metric job wizard test (elastic#45279) [SIEM] Inject/apply KQL changed in refresh button (elastic#45065) [Graph] Type persistence (elastic#44985) Functional tests: convert more test/services to TS (elastic#45176)
dmlemeshko
added a commit
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Sep 11, 2019
…ditor * 'master' of github.com:elastic/kibana: (76 commits) Upgrade EUI to 13.8.1 (elastic#45052) [ML] Add multi metric job wizard test (elastic#45279) [SIEM] Inject/apply KQL changed in refresh button (elastic#45065) [Graph] Type persistence (elastic#44985) Functional tests: convert more test/services to TS (elastic#45176) [ML] Fixes display of matching modules in index data visualizer (elastic#45261) [Console] Update indentation behaviour (elastic#45249) Convert value provided to PhraseValueInput to string to catch Exception (elastic#45259) [Region Map] Fix loading default vector map and base layer setting (elastic#43858) [ML] Fixing empty time range when cloning jobs (elastic#45286) [ML] Fixing wizard validation delay (elastic#45265) [Logs UI] Interpret finished analysis jobs as healthy (elastic#45268) [Console] SQL template with triple quote in completion (elastic#45248) [ML] Data Frames: Cards as links (elastic#45254) fix(code/frontend): should show updating instead of cloning when updating (elastic#45238) fix(code/frontend): fix document search result from (elastic#45236) disable another flaky suite (elastic#45323) (elastic#45330) disable flaky suite (elastic#45105) skip flaky suite (elastic#43069) skip flaky suite (elastic#45089) ...
dmlemeshko
added a commit
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
dmlemeshko
added a commit
that referenced
this pull request
Sep 11, 2019
* convert more test/services to TS * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * Update test/functional/services/combo_box.ts Co-Authored-By: Tre' <wayne.seymour@elastic.co> * fix lint error
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates services located in
test/servicesto typescript.I added small descriptions to some functions to clarify how they should be used.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers