Skip to content

Commit 4e20267

Browse files
committed
test(ui): remove WelcomeMyTutorials tests and update empty state test
1 parent 3871133 commit 4e20267

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

redisinsight/ui/src/components/side-panels/panels/enablement-area/EnablementArea/EnablementArea.spec.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('EnablementArea', () => {
192192
expect(screen.getByTestId('upload-tutorial-form')).toBeInTheDocument()
193193
})
194194

195-
it('should render open form with tutorials', () => {
195+
it('should render form directly when no tutorials', () => {
196196
const customTutorials = [
197197
{ ...MOCK_CUSTOM_TUTORIALS_ITEMS[0], children: [] },
198198
]
@@ -202,9 +202,6 @@ describe('EnablementArea', () => {
202202
customTutorials={customTutorials}
203203
/>,
204204
)
205-
expect(screen.getByTestId('welcome-my-tutorials')).toBeInTheDocument()
206-
207-
fireEvent.click(screen.getByTestId('upload-tutorial-btn'))
208205
expect(screen.getByTestId('upload-tutorial-form')).toBeInTheDocument()
209206
})
210207

@@ -254,17 +251,6 @@ describe('EnablementArea', () => {
254251
)
255252
})
256253

257-
it('should not render welcome screen if at least one tutorial uploaded', () => {
258-
render(
259-
<EnablementArea
260-
{...instance(mockedProps)}
261-
customTutorials={MOCK_CUSTOM_TUTORIALS_ITEMS}
262-
/>,
263-
)
264-
expect(
265-
screen.queryByTestId('welcome-my-tutorials'),
266-
).not.toBeInTheDocument()
267-
})
268254
})
269255

270256
describe('Telemetry', () => {

0 commit comments

Comments
 (0)