kibana/test
Davis McPhee 4af51e705d
[Discover] Fix blank page when switching between time ranges in SQL mode (#147665)
## Summary

This PR fixes an issue where switching to a time range without data,
then back to a time range with data would produce a blank page when in
SQL mode.

Fixes #147618.

### Checklist

- [ ] ~Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
- [ ]
~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] ~Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
- [ ] ~This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2022-12-16 02:26:43 -07:00
..
accessibility skip flaky suite (#147186) 2022-12-12 21:39:23 +00:00
analytics [EBT] Add flush method and call it during stop (#144925) 2022-11-16 14:48:11 +01:00
api_integration [Guided onboarding] Update guide IDs (#147348) 2022-12-14 15:51:51 +01:00
common Added Rollups CCS Test (#144074) 2022-10-28 15:20:50 -04:00
examples [Portable Dashboards] Implementation Feature Branch (#144332) 2022-12-15 10:17:23 -05:00
functional [Discover] Fix blank page when switching between time ranges in SQL mode (#147665) 2022-12-16 02:26:43 -07:00
harden Add 'fork' to child_process hardening tests (#139222) 2022-08-23 07:53:28 -04:00
health_gateway [Health Gateway] Add integration tests (#146334) 2022-12-08 22:51:04 +01:00
interactive_setup_api_integration [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
interactive_setup_functional [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
interpreter_functional chore(NA): enables isolatedModules on base tsconfig file (#144841) 2022-11-18 19:39:11 +00:00
node_roles_functional Background task instances wait for another instance to complete the migration (#143135) 2022-11-02 06:17:02 -07:00
package Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
plugin_functional Removes module core/server/types (#147223) 2022-12-13 09:20:04 -07:00
scripts [Health Gateway] Add integration tests (#146334) 2022-12-08 22:51:04 +01:00
server_integration skip failing test suite (#131192) 2022-11-01 18:43:44 -04:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json [ts] set allowJs to true by default (#144281) 2022-11-01 15:26:44 -07:00