Skip to content

[EuiCodeEditor] Provide selection target for functional tests#939

Merged
ycombinator merged 2 commits intoelastic:masterfrom
ycombinator:code-editor/functional-testing/target
Jun 21, 2018
Merged

[EuiCodeEditor] Provide selection target for functional tests#939
ycombinator merged 2 commits intoelastic:masterfrom
ycombinator:code-editor/functional-testing/target

Conversation

@ycombinator
Copy link
Contributor

@ycombinator ycombinator commented Jun 21, 2018

With this change, functional tests of code consuming this component can select the EuiCodeEditor element.

You can see an example of this in action if you pull down elastic/kibana#20027 along side this PR and run the functional tests for the Grok Debugger app. More specifically, you can see how the data-test-subj introduced in this PR is used for selection here:

https://github.com/elastic/kibana/pull/20027/files#diff-4621acc6e44779ce105ee52070f80bafR17

With this change, functional tests of code consuming this component can select the code editor element.
@ycombinator ycombinator changed the title Providing selection target for functional tests [EuiCodeEditor[ Providing selection target for functional tests Jun 21, 2018
@ycombinator ycombinator changed the title [EuiCodeEditor[ Providing selection target for functional tests [EuiCodeEditor] Providing selection target for functional tests Jun 21, 2018
@ycombinator ycombinator changed the title [EuiCodeEditor] Providing selection target for functional tests [EuiCodeEditor] Provide selection target for functional tests Jun 21, 2018
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM

@ycombinator ycombinator merged commit 8f8293b into elastic:master Jun 21, 2018
@ycombinator ycombinator deleted the code-editor/functional-testing/target branch June 21, 2018 16:22
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.

2 participants