Skip to content

Commit 87b9078

Browse files
committed
feat: adding test for create e-service page
1 parent 1f569bb commit 87b9078

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { mockUseJwt, renderWithApplicationContext } from '@/utils/testing.utils'
2+
import ProviderEServiceCreatePage from '../ProviderEServiceCreate.page'
3+
import { screen } from '@testing-library/react'
4+
5+
mockUseJwt()
6+
7+
describe('Provider E-service create page', () => {
8+
it('Should be visible section', () => {
9+
renderWithApplicationContext(<ProviderEServiceCreatePage />, {
10+
withRouterContext: true,
11+
withReactQueryContext: true,
12+
})
13+
14+
expect(screen.getByText('create.step1.detailsTitle'))
15+
expect(screen.getByText('create.step1.delegationSection.title'))
16+
expect(screen.getByText('create.step1.isSignalHubEnabled.title'))
17+
})
18+
})

0 commit comments

Comments
 (0)