From 2e7b3d149ea8fd21b3bdb49994d1d40b3b6508bb Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Fri, 1 Sep 2023 21:52:12 +0000 Subject: [PATCH] fix workbench download text and csv schema Signed-off-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]); }); }); });