- Each page object exposes an init method, which accepts a reference to remote.
- Extract page objects from support/index.js into PageObjects.js.
- PageObjects.js also exposes an init method, which accepts a reference to remote. It’s responsible for passing this onto all of the page object instances.
- The functional tests index file calls PageObjects.init and provides the remote reference.
- Extract log and try method functionality from common.js into Log and Try utils.
- Remove common.js dependency from es_client.js and elastic_dump.js.
- Partially convert “discover” tests to use PageObjects, as a demonstration.