From cbb8b24feda2c796875a36f1bd73279eb11adadd Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Fri, 16 Feb 2024 18:48:00 -0800 Subject: [PATCH] Normalize query workbench constant newlines (#1105) * Normalize string newlines Signed-off-by: Simeon Widdis * Revert "Normalize string newlines" This reverts commit f25a99f80ccd396e74d569c2bc0f2aa79c0f7995. Signed-off-by: Simeon Widdis * Fix which side is newline-normalized Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis (cherry picked from commit 842fe0ccc120b79337642c6c4c762453b8ec838d) --- .../plugins/query-workbench-dashboards/ui.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()); + } }); }); });