From e8ee4828df3f9e097d29a3ea7e1cf2b56d2c0ce0 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Fri, 25 Oct 2024 10:58:01 +0100 Subject: [PATCH] Fix the mocked subject set index fields --- .../src/shared/components/SubjectPicker/SubjectPicker.spec.js | 2 +- .../shared/components/SubjectPicker/SubjectPicker.stories.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.spec.js b/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.spec.js index 524665cdab..ee202a0b24 100644 --- a/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.spec.js +++ b/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.spec.js @@ -14,7 +14,7 @@ describe('Components > Subject Picker', function () { const dataTable = screen.getByRole('table') const [ tableHeader, tableContent ] = within(dataTable).getAllByRole('rowgroup') columnHeadings = within(tableHeader).getByRole('row', { - name: 'subject_id date FormSearch title FormSearch creators FormSearch status' + name: 'subject_id date FormSearch page FormSearch status' }) const subjects = [ '23 January 1916', diff --git a/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.stories.js b/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.stories.js index 2203a7eb5e..b62a9b59dd 100644 --- a/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.stories.js +++ b/packages/app-project/src/shared/components/SubjectPicker/SubjectPicker.stories.js @@ -64,7 +64,7 @@ Default.args = { id: '15582', display_name: 'Anti-Slavery Letters: 1800-1839', metadata: { - indexFields: 'date,title,creators' + indexFields: 'date,page' } }, workflow: { @@ -86,7 +86,7 @@ Tablet.args = { id: '15582', display_name: 'Anti-Slavery Letters: 1800-1839', metadata: { - indexFields: 'date,title,creators' + indexFields: 'date,page' } }, workflow: {