From cdd41ca05b1bdec4abd0c4fa7beca88d92dc6edf Mon Sep 17 00:00:00 2001 From: Reinder Kraaij <kraaij@astron.nl> Date: Tue, 16 Jan 2024 15:39:02 +0000 Subject: [PATCH] Resolve TMSS-2888 "Qa workflow front end only" --- .../src/routes/Workflow/qa.reporting.template.js | 8 ++++---- .../tmss_webapp/src/tests/report.project.test.js | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Workflow/qa.reporting.template.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Workflow/qa.reporting.template.js index 92147099e25..ef9bf1b7262 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Workflow/qa.reporting.template.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Workflow/qa.reporting.template.js @@ -147,11 +147,11 @@ const QaReportingTemplate = { </tbody> </table> <br/> - <strong>Performance of the system:</strong> - <strong>Data recording:</strong> + <p><strong>Performance of the system:</strong><br><br></p> + <p><strong>Data recording:</strong><br><br></p> ${missingStationsContent?missingStationsContent:""} - <strong>Data processing:</strong> - <strong>Archiving:</strong> + <p><strong>Data processing:</strong><br><br></p> + <p><strong>Archiving:</strong><br><br></p> <strong style='display:inline'>Remarks:</strong><p style= "display:inline; position: relative"> Please analyse the validation plots at <a href="https://proxy.lofar.eu/inspect/HTML/">https://proxy.lofar.eu/inspect/HTML/</a> within 24 hours after this notification and submit your findings using the form at <a href="/schedulingunit/${id}/workflow">${window.location.origin}/schedulingunit/${id}/workflow </a>. diff --git a/SAS/TMSS/frontend/tmss_webapp/src/tests/report.project.test.js b/SAS/TMSS/frontend/tmss_webapp/src/tests/report.project.test.js index 05b3b4c8acd..0ca3813ba23 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/tests/report.project.test.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/tests/report.project.test.js @@ -97,7 +97,10 @@ describe('Project Report Render With Contents', () => { await waitFor(() => { expect(component.container.querySelector('.p-autocomplete-loader')).toBeNull(); }, { timeout: 5000 }); - + await waitFor(() => { + const anchorElement = component.container.querySelector(".report-calendar"); + expect(anchorElement).toBeInTheDocument(); + }); const componentSnapshotAfterCsv = component.asFragment(); expect(componentSnapshotAfterCsv).toMatchSnapshot("After CSV Generation"); await waitFor(() => { @@ -107,10 +110,10 @@ describe('Project Report Render With Contents', () => { cinstance.clearAll(); await waitFor(() => { - expect(component.container.querySelector('.p-autocomplete-loader')).toBeNull(); + expect(component.container.querySelector('.p-icon-spin')).toBeNull(); }, { timeout: 5000 }); - + const componentSnapshotAfterClear = component.asFragment(); expect(componentSnapshotAfterClear).toMatchSnapshot("After Clear ALl"); -- GitLab