Skip to content
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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

abilpraju-aot
Copy link
Contributor

Issue Tracking

JIRA:
Issue Type: BUG/ FEATURE
image

Changes

Screenshots (if applicable)

Notes

Checklist

  • Updated changelog
  • Added meaningful title for pull request

@abilpraju-aot abilpraju-aot requested review from a team as code owners March 19, 2025 12:50
@@ -18,7 +18,7 @@
"<rootDir>/node_modules/(?!d3)/"
],
"testMatch": [
"**/src/_tests_/unit/**/*.test.js"
"**/src/_tests_/unit/routes/submission/SubmissionView.test.js"
],
Copy link
Contributor

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

Comment on lines 187 to 190
beforeEach(() => {
useDispatch.mockReturnValue(mockDispatch);
jest.clearAllMocks();
});
Copy link
Contributor

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
Copy link
Contributor

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();
});
});
Copy link
Contributor

@arun-s-aot arun-s-aot Mar 20, 2025

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 :

  1. 'submitted on' date time value is coming up is as expected
  2. export pdf button is clickable and not disabled.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants