Skip to content

Commit ec1fd3d

Browse files
committed
fix: small changes on a typo
1 parent 6a9a9cd commit ec1fd3d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/component/sections/dataset/Dataset.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ describe('Dataset', () => {
379379
cy.findByText(/The metadata for this dataset has been updated./).should('exist')
380380
})
381381

382-
it('renders the Dataset Versions tab', () => {
382+
it('renders the Dataset Version tab', () => {
383383
const testDataset = DatasetMother.create()
384384
datasetRepository.getDatasetVersionsSummaries = cy.stub().resolves(versionSummaryInfo)
385385

@@ -396,7 +396,7 @@ describe('Dataset', () => {
396396
cy.findAllByText(testDataset.version.title).should('exist')
397397
const versionsTab = cy.findByRole('tab', { name: 'Versions' })
398398
versionsTab.should('exist').click()
399-
cy.findByText('Dataset Versions').should('exist')
399+
cy.findByText('Dataset Version').should('exist')
400400
cy.findByText('Summary').should('exist')
401401
cy.findByText('Version Note').should('exist')
402402
cy.findByText('Contributors').should('exist')

tests/component/sections/dataset/dataset-versions/DatasetVersions.spec.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ describe('DatasetVersions', () => {
4545
datasetsRepository.getDatasetVersionsSummaries = cy.stub().resolves(versionSummaryInfoDraft)
4646
cy.findByTestId('dataset-versions-table').should('exist')
4747

48-
cy.contains('th', 'Dataset Versions').should('exist')
48+
cy.contains('th', 'Dataset Version').should('exist')
4949
cy.contains('th', 'Summary').should('exist')
5050
cy.contains('th', 'Version Note').should('exist')
5151
cy.contains('th', 'Contributors').should('exist')
5252
cy.contains('th', 'Published On').should('exist')
5353
cy.findByRole('button', { name: 'View Differences' }).should('not.exist')
5454
cy.findAllByTestId('select-checkbox').should('not.exist')
55-
cy.findByText(/View Detail/).should('not.exist')
55+
cy.findByText(/View Details/).should('not.exist')
5656
})
5757

5858
beforeEach(() => {
@@ -66,7 +66,7 @@ describe('DatasetVersions', () => {
6666
it('should render the dataset versions table with view differences button and checkbox', () => {
6767
cy.findByTestId('dataset-versions-table').should('exist')
6868

69-
cy.contains('th', 'Dataset Versions').should('exist')
69+
cy.contains('th', 'Dataset Version').should('exist')
7070
cy.contains('th', 'Summary').should('exist')
7171
cy.contains('th', 'Version Note').should('exist')
7272
cy.contains('th', 'Contributors').should('exist')
@@ -93,7 +93,7 @@ describe('DatasetVersions', () => {
9393
datasetsRepository.getDatasetVersionsSummaries = cy.stub().resolves(versionSummaryInfo)
9494

9595
cy.findByTestId('dataset-versions-table').should('exist')
96-
cy.contains('th', 'Dataset Versions').should('exist')
96+
cy.contains('th', 'Dataset Version').should('exist')
9797
cy.contains('th', 'Summary').should('exist')
9898
cy.contains('th', 'Version Note').should('exist')
9999
cy.contains('th', 'Contributors').should('exist')

0 commit comments

Comments
 (0)