kibana/test
Jean-Louis Leysens 09129c8e38
[Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (#100388) (#101076)
* do not send telemetry if isScreenshotMode

* Implement PR feedback:

* added another Jest test
* move Boolean() to make the opt-in value always boolean

* remove unused import and convert to import type

* fix type issues

* update jest snapshot

* Expanded test coverage

- added plugin functional test
- added jest test to check TelemetrySender behaviour
- exported the localStorage/window value that flags screenshot
  mode

* fix test plugin name in package.json and make sure to opt out of telemetry when the test finishes

* added missing type file to plugin_functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/telemetry/kibana.json
2021-06-01 15:27:05 -04:00
..
accessibility Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)" 2021-05-28 17:21:51 -07:00
api_integration [bfetch] compress stream chunks (#97994) (#101027) 2021-06-01 05:13:52 -04:00
common Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)" 2021-05-28 17:21:51 -07:00
examples Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)" 2021-05-28 17:21:51 -07:00
functional Upgrade EUI to v33.0.0 (#99382) (#101067) 2021-06-01 13:56:37 -04:00
harden Ban use of lodash.template (#100277) (#100332) 2021-05-21 18:39:20 +00:00
interpreter_functional [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
new_visualize_flow [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
package Automated package testing (#88900) (#100812) 2021-05-27 20:33:04 +00:00
plugin_functional [Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (#100388) (#101076) 2021-06-01 15:27:05 -04:00
scripts Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)" 2021-05-28 17:21:51 -07:00
security_functional [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
server_integration Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)" 2021-05-28 17:21:51 -07:00
ui_capabilities/newsfeed_err [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
visual_regression [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
tsconfig.json Upgrade EUI to v33.0.0 (#99382) (#101067) 2021-06-01 13:56:37 -04:00