Skip to content

Commit

Permalink
updated the survey loading and error and the tests to reflect new change
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhanam76 committed Oct 15, 2024
1 parent a6c0c41 commit 36342e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions eq-author/src/App/dataSettings/SupplementaryDataPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ const SupplementaryDataPage = () => {
};

if (surveyLoading) {
return <Loading height="100%">Dataset page is loading...</Loading>;
return (
<Loading height="100%"> Supplementary data page is loading...</Loading>
);
}

if (surveyError) {
return <Error>Dataset page error</Error>;
return <Error>Supplementary data page error</Error>;
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 36342e7

Please sign in to comment.