diff --git a/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js b/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js index 62b65282c..16506a2bd 100644 --- a/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js +++ b/cypress/integration/plugins/query-workbench-dashboards/ui.spec.js @@ -200,7 +200,10 @@ describe('Test and verify SQL downloads', () => { 'select * from accounts where balance > 49500 order by account_number', }, }).then((response) => { - expect(response.body.data.resp).to.have.string(files[file]); + const data = files[file]; + for (const line of data.split('\n')) { + expect(response.body.data.resp).to.have.string(line.trim()); + } }); }); });