-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test case for submission view #2661
base: develop
Are you sure you want to change the base?
test case for submission view #2661
Conversation
forms-flow-web/package.json
Outdated
@@ -18,7 +18,7 @@ | |||
"<rootDir>/node_modules/(?!d3)/" | |||
], | |||
"testMatch": [ | |||
"**/src/_tests_/unit/**/*.test.js" | |||
"**/src/_tests_/unit/routes/submission/SubmissionView.test.js" | |||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove package.json @abilpraju-aot
beforeEach(() => { | ||
useDispatch.mockReturnValue(mockDispatch); | ||
jest.clearAllMocks(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u can remove this as it is already given in line 179-182
}; | ||
} | ||
|
||
// Initialize store before each test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this comment
await waitFor(() => { | ||
expect(screen.getByTestId("application-view")).toBeInTheDocument(); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add test cases to verify :
- 'submitted on' date time value is coming up is as expected
- export pdf button is clickable and not disabled.
|
Issue Tracking
JIRA:

Issue Type: BUG/ FEATURE
Changes
Screenshots (if applicable)
Notes
Checklist