From 36342e7c751a8059a0d3aea4e41845c1072277fb Mon Sep 17 00:00:00 2001 From: Farhanam76 Date: Tue, 15 Oct 2024 12:11:09 +0100 Subject: [PATCH] updated the survey loading and error and the tests to reflect new change --- .../src/App/dataSettings/SupplementaryDataPage/index.js | 6 ++++-- .../App/dataSettings/SupplementaryDataPage/index.test.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/eq-author/src/App/dataSettings/SupplementaryDataPage/index.js b/eq-author/src/App/dataSettings/SupplementaryDataPage/index.js index 957e2f64bd..f969d71d8d 100644 --- a/eq-author/src/App/dataSettings/SupplementaryDataPage/index.js +++ b/eq-author/src/App/dataSettings/SupplementaryDataPage/index.js @@ -183,11 +183,13 @@ const SupplementaryDataPage = () => { }; if (surveyLoading) { - return Dataset page is loading...; + return ( + Supplementary data page is loading... + ); } if (surveyError) { - return Dataset page error; + return Supplementary data page error; } return ( diff --git a/eq-author/src/App/dataSettings/SupplementaryDataPage/index.test.js b/eq-author/src/App/dataSettings/SupplementaryDataPage/index.test.js index 496683a559..f1d0044bd2 100644 --- a/eq-author/src/App/dataSettings/SupplementaryDataPage/index.test.js +++ b/eq-author/src/App/dataSettings/SupplementaryDataPage/index.test.js @@ -236,7 +236,7 @@ describe("Supplementary dataset page", () => { user, mocks ); - expect(getByText("Dataset for survey ID 068")).toBeTruthy(); + expect(getByText("Dataset schema for survey ID 068")).toBeTruthy(); expect(getByText("ID:")).toBeTruthy(); expect(getByText("Version:")).toBeTruthy(); expect(getByText("Date created:")).toBeTruthy();