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

[EuiCodeEditor] Provide selection target for functional tests #939

Merged

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