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

[ftr] wrap remote in browser service #26394

Merged
merged 12 commits into from
Nov 29, 2018

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Nov 29, 2018

In an effort to decouple us from leadfoot a little more and make it easier to move away from the library this refactors several page objects to use a wrapper service browser, which exposes a subset of the methods from remote which we should be able to port to whatever library we like. We've also renamed the remote service to __leadfoot__ in an effort to discourage users from using it instead of the browser or find services.

@spalger spalger added the WIP Work in progress label Nov 29, 2018
@spalger spalger force-pushed the fix/remove-references-to-remote branch 7 times, most recently from d0840a4 to 7442ab5 Compare November 29, 2018 07:32
@elastic elastic deleted a comment from elasticmachine Nov 29, 2018
@spalger spalger force-pushed the fix/remove-references-to-remote branch 2 times, most recently from 17510de to c7cdf25 Compare November 29, 2018 08:12
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger force-pushed the fix/remove-references-to-remote branch from 789722b to 1b85788 Compare November 29, 2018 09:07
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger added review v7.0.0 v6.6.0 v6.5.2 Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc and removed WIP Work in progress labels Nov 29, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@spalger spalger mentioned this pull request Nov 29, 2018
@spalger

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cuff-links cuff-links left a comment

Choose a reason for hiding this comment

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

Looks good. Runs well. I had a failure but when I reran the tests, they all passed in subsequent runs. This gives us a good springboard to start building the webdriver service. I agree with the removal of method chaining.

Copy link
Member

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

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

Looks great and follows everything that we discussed today.

@spalger spalger merged commit 50be0d8 into elastic:master Nov 29, 2018
spalger pushed a commit to spalger/kibana that referenced this pull request Nov 29, 2018
* [pageObjects/common] remove unused runScript method

* [pageObjects/common] remove almost unused doesCssSelectorExist method

* [pageObjects/graph] convert to use find/testSubjects services

* [pageObjects/discover] refactor out remote service

* [pageObjects/pointSeries] refactor out remote service

* [pageObjects/monitoring] refactor out remote service

* [ftr] refactor uses of remote to use browser or find

* [ftr/services/remote] wrap remote with browser service

* [pageObjects/security] refactor out uses of remote

* [ftr/services/browser] isolate element calls to find

* [ftr] rename remote service to __leadfoot__

* [ftr/leadfoot] cleanup some renames in find, keep names in other tests
spalger pushed a commit to spalger/kibana that referenced this pull request Nov 29, 2018
* [pageObjects/common] remove unused runScript method

* [pageObjects/common] remove almost unused doesCssSelectorExist method

* [pageObjects/graph] convert to use find/testSubjects services

* [pageObjects/discover] refactor out remote service

* [pageObjects/pointSeries] refactor out remote service

* [pageObjects/monitoring] refactor out remote service

* [ftr] refactor uses of remote to use browser or find

* [ftr/services/remote] wrap remote with browser service

* [pageObjects/security] refactor out uses of remote

* [ftr/services/browser] isolate element calls to find

* [ftr] rename remote service to __leadfoot__

* [ftr/leadfoot] cleanup some renames in find, keep names in other tests
spalger pushed a commit that referenced this pull request Nov 30, 2018
Backports the following commits to 6.x:
 - [ftr] wrap remote in browser service  (#26394)
@spalger
Copy link
Contributor Author

spalger commented Nov 30, 2018

6.x: 3abe125

@spalger spalger removed the v6.5.2 label Nov 30, 2018
@spalger spalger deleted the fix/remove-references-to-remote branch November 30, 2018 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants