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

[Uptime] [Test] Add functional test for monitor with location name but no geo #55915

Merged
merged 9 commits into from
Jan 29, 2020

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Jan 24, 2020

Summary

Fixes elastic/uptime#141.

Test if the appropriate UI is displayed when monitor has a name but no geo data.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@justinkambic justinkambic added test_xpack_functional v8.0.0 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.7.0 v7.6.0 labels Jan 24, 2020
@justinkambic justinkambic self-assigned this Jan 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@justinkambic justinkambic added the release_note:skip Skip the PR/issue when compiling release notes label Jan 24, 2020
@justinkambic justinkambic force-pushed the uptime_test-location-no-geo branch 2 times, most recently from df76b3c to f7bb1f0 Compare January 27, 2020 14:36
@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

@justinkambic justinkambic marked this pull request as ready for review January 27, 2020 20:04
Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

Pretty much LGTM, but I have some questions here before I sign off.

before(async () => {
/**
* This mogrify function will strip the documents of their location
* data (but preserve their locaion name), which is necessary for
Copy link
Contributor

Choose a reason for hiding this comment

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

nit s/locaion/location/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this. We will blame it on awful 2017 MBP keyboard 😆.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Repaired in eb1d96e.

) {
await pageObjects.common.navigateToApp('uptime');
await pageObjects.timePicker.setAbsoluteRange(datePickerStartValue, datePickerEndValue);
await uptimeService.navigateToMonitorWithId(monitorId);
if ((await uptimeService.getMonitorNameDisplayedOnPageTitle()) !== monitorName) {
if (
!!monitorName &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need !! in javascript? It's useful when you want to return a bool, but isn't it equivalent as just omitting it in a boolean expression?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted in 2056471.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM

justinkambic added a commit to justinkambic/kibana that referenced this pull request Jan 29, 2020
…t no geo (elastic#55915)

* Add unit test for missing geo on named location.

* WIP writing a functional test.

* New named-location with no geo data test is functioning.

* Update snaps for functional test attribute.

* Rename test.

* Remove unnecessary async syntax.

* Delete unneeded symbols.

* Remove unnecessary boolean conversion.

* Fix typo in a comment.
justinkambic added a commit to justinkambic/kibana that referenced this pull request Jan 29, 2020
…t no geo (elastic#55915)

* Add unit test for missing geo on named location.

* WIP writing a functional test.

* New named-location with no geo data test is functioning.

* Update snaps for functional test attribute.

* Rename test.

* Remove unnecessary async syntax.

* Delete unneeded symbols.

* Remove unnecessary boolean conversion.

* Fix typo in a comment.
justinkambic added a commit that referenced this pull request Jan 29, 2020
…t no geo (#55915) (#56330)

* Add unit test for missing geo on named location.

* WIP writing a functional test.

* New named-location with no geo data test is functioning.

* Update snaps for functional test attribute.

* Rename test.

* Remove unnecessary async syntax.

* Delete unneeded symbols.

* Remove unnecessary boolean conversion.

* Fix typo in a comment.
justinkambic added a commit that referenced this pull request Jan 29, 2020
…t no geo (#55915) (#56331)

* Add unit test for missing geo on named location.

* WIP writing a functional test.

* New named-location with no geo data test is functioning.

* Update snaps for functional test attribute.

* Rename test.

* Remove unnecessary async syntax.

* Delete unneeded symbols.

* Remove unnecessary boolean conversion.

* Fix typo in a comment.
@justinkambic justinkambic deleted the uptime_test-location-no-geo branch January 29, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability test_xpack_functional test-unit v7.6.0 v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] [Test] Add functional test to verify named location without geo is supported
4 participants