[Tests] Add a helper to detect if functional tests are running against cloud#51817
Conversation
💔 Build Failed |
|
@elasticmachine merge upstream |
💚 Build Succeeded |
tsullivan
left a comment
There was a problem hiding this comment.
Overall it looks good and I agree with the method, because this condition is needed.
As much as I like atomically small PRs, I think this PR should come with the isCloud method being used in a test somewhere. Because there's no guarantee this test method really works.
Also, had a minor question about TS inference.
|
@tsullivan I added a test change, which will account for #51477. The testing of this is a little cumbersome, in that you'll need to run tests against 7.5 cloud (which is in staging) on a 7.5 version of Kibana. I don't know of a place/way to test against cloud running master so this is how I've been handling it. My test looks like: |
💚 Build Succeeded |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…t cloud (elastic#51817) * Add a helper to detect if functional tests are running against cloud * PR feedback * Clean up comment * New eslint rules applied
|
Backport: 7.x: 41787f8 |
This PR adds a helper method to the common page object that will detect if the functional tests are running against cloud or not.
This should help manage tests that fail only on cloud, as we can now fork the test based on the the response from this helper and still ensure cloud coverage.
This relates to #51477 where the UI is slightly different for cloud (as they do not support monitoring with metricbeat) but a simple fork in the test will allow the test to work for cloud too.
cc @tsullivan @stacey-gammon per our slack conversation