From 87b02a27809454a4a1a16e8e15ad78021aef2ff2 Mon Sep 17 00:00:00 2001 From: David Cui Date: Tue, 3 Nov 2020 12:32:45 -0800 Subject: [PATCH 1/2] added cypress tests for report definition details and report details, added IDs to elements --- .../report_definitions_table.test.tsx.snap | 2 + .../__snapshots__/reports_table.test.tsx.snap | 1 + .../report_definition_details.test.tsx.snap | 9 +++ .../report_definition_details.tsx | 17 +++++- .../main/report_definitions_table.tsx | 5 +- .../public/components/main/reports_table.tsx | 1 + .../target/public/.kbn-optimizer-cache | 14 ++--- kibana-reports/target/public/1.plugin.js | 18 ++++-- kibana-reports/target/public/1.plugin.js.map | 2 +- .../test/cypress/integration/details.spec.js | 57 +++++++++++++++++++ 10 files changed, 108 insertions(+), 18 deletions(-) create mode 100644 kibana-reports/test/cypress/integration/details.spec.js diff --git a/kibana-reports/public/components/main/__tests__/__snapshots__/report_definitions_table.test.tsx.snap b/kibana-reports/public/components/main/__tests__/__snapshots__/report_definitions_table.test.tsx.snap index 43cf7978..8a0c4e8a 100644 --- a/kibana-reports/public/components/main/__tests__/__snapshots__/report_definitions_table.test.tsx.snap +++ b/kibana-reports/public/components/main/__tests__/__snapshots__/report_definitions_table.test.tsx.snap @@ -266,6 +266,7 @@ exports[` panel render component 1`] = ` >