Skip to content

Commit

Permalink
Merge pull request #3126 from ONSdigital/EAR-2467-Supplementary-data-…
Browse files Browse the repository at this point in the history
…text-changes

EAR-2467-Supplementary-data-text-changes
  • Loading branch information
Farhanam76 authored Sep 11, 2024
2 parents c387439 + 436c137 commit e67185d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
13 changes: 7 additions & 6 deletions eq-author/src/App/dataSettings/SupplementaryDataPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,17 @@ const SupplementaryDataPage = () => {
{!tableData && (
<>
<Common.TabTitle>
Select a supplementary dataset to link to
Select a supplementary dataset schema to link to
</Common.TabTitle>
<Common.TabContent>
Linking to a supplementary dataset will allow you
to pipe data that respondents have provided in
previous questionnaires into question titles or
percentage answer type labels.
Linking to a supplementary dataset schema will
allow you to pipe data that respondents have
provided in previous questionnaires into question
titles or percentage answer type labels.
</Common.TabContent>
<Common.TabContent>
Only one dataset can be linked per questionnaire.
Only one dataset schema can be linked per
questionnaire.
</Common.TabContent>
<StyledTitle>Select a survey ID</StyledTitle>
<CustomSelect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ describe("Supplementary dataset page", () => {
user,
mocks
);
expect(getByText("Select a supplementary dataset to link to")).toBeTruthy();
expect(
getByText("Only one dataset can be linked per questionnaire.")
getByText("Select a supplementary dataset schema to link to")
).toBeTruthy();
expect(
getByText("Only one dataset schema can be linked per questionnaire.")
).toBeTruthy();
});

Expand All @@ -166,7 +168,7 @@ describe("Supplementary dataset page", () => {
const select = getByTestId("list-select");
fireEvent.change(select, { target: { value: "121" } });
await waitFor(() => {
expect(getByText("Datasets for survey ID 121")).toBeTruthy();
expect(getByText("Dataset schemas for survey ID 121")).toBeTruthy();
expect(getByTestId("datasets-table")).toBeTruthy();
expect(findAllByText("Date created")).toBeTruthy();
expect(getAllByTestId("dataset-row")).toBeTruthy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const SchemaVersionTable = ({ surveyId, linkSupplementaryData }) => {

return (
<>
<Title>Datasets for survey ID {surveyId}</Title>
<Title>Dataset schemas for survey ID {surveyId}</Title>
<Table data-test="datasets-table">
<TableHead>
<TableRow>
Expand All @@ -77,7 +77,7 @@ const SchemaVersionTable = ({ surveyId, linkSupplementaryData }) => {
Date created
</StyledTableHeadColumn>
<StyledTableHeadColumn width="20%">
Link dataset
Link dataset schema
</StyledTableHeadColumn>
</TableRow>
</TableHead>
Expand Down

0 comments on commit e67185d

Please sign in to comment.