From 87a35b5ca11924b47e736b905b27b03083ea3db7 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 5 Sep 2023 10:42:11 -0700 Subject: [PATCH] fix workbench download text and csv schema (#814) Signed-off-by: Joshua Li (cherry picked from commit 46c0882627b5c8732b48564caf161719c6c3c0c8) --- .../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]); }); }); });