Skip to content

Commit 4ba5190

Browse files
committed
fix: unit test error
1 parent 600ce94 commit 4ba5190

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/component/sections/collection/edit-collection-dropdown/EditCollectionDropdown.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('EditCollectionDropdown', () => {
158158
cy.findByRole('button', { name: 'Permissions' }).click()
159159

160160
cy.findByText('Not Implemented').should('exist')
161-
cy.findByText('This feature is not implemented yet in SPA.').should('exist')
161+
cy.findByText(/This feature is not implemented yet in the Modern version./i).should('exist')
162162
})
163163

164164
describe('delete button', () => {

tests/component/sections/not-implemented/NotImplemented.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('NotImplementedModal Component', () => {
1010
cy.findByText('Not Implemented').should('exist')
1111

1212
// Check if the modal body has specific content
13-
cy.findByText('This feature is not implemented yet in SPA.').should('exist')
13+
cy.findByText(/This feature is not implemented yet in the Modern version./i).should('exist')
1414
})
1515

1616
it('closes the modal when the Close button is clicked', () => {

0 commit comments

Comments
 (0)