From 733ac95e71fca5552579782a42feb49d95cf45e2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:43:30 -0400 Subject: [PATCH] fix workbench download text and csv schema (#814) (#816) Signed-off-by: Joshua Li (cherry picked from commit 46c0882627b5c8732b48564caf161719c6c3c0c8) Co-authored-by: Joshua Li --- .../plugins/query-workbench-dashboards/ui.spec.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js b/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js index dbb40967c..0187b6d52 100644 --- a/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js +++ b/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js @@ -207,14 +207,7 @@ describe('Test and verify SQL downloads', () => { 'select * from accounts where balance > 49500 order by account_number', }, }).then((response) => { - if ( - title === 'Download and verify CSV' || - title === 'Download and verify Text' - ) { - expect(response.body.data.body).to.have.string(files[file]); - } else { - expect(response.body.data.resp).to.have.string(files[file]); - } + expect(response.body.data.resp).to.have.string(files[file]); }); }); });