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

fix: moved registration tests to specific files. #1104

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

attiyaIshaque
Copy link
Contributor

@attiyaIshaque attiyaIshaque commented Nov 15, 2023

Description

All tests that are not directly related to the registration form functionality have been moved to their respective component-specific test files.

JIRA

VAN-1628

@attiyaIshaque attiyaIshaque requested a review from a team as a code owner November 15, 2023 13:55
@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1628-refactor-tests branch 2 times, most recently from f09d5f6 to 7fe3d3e Compare November 15, 2023 15:02
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7f8a270) 87.05% compared to head (497db70) 87.08%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1104      +/-   ##
==========================================
+ Coverage   87.05%   87.08%   +0.02%     
==========================================
  Files         124      124              
  Lines        2271     2276       +5     
  Branches      629      634       +5     
==========================================
+ Hits         1977     1982       +5     
  Misses        285      285              
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1628-refactor-tests branch from 7fe3d3e to 4fc3eac Compare November 16, 2023 11:01
@@ -153,11 +148,7 @@ describe('RegistrationPage', () => {
};

const ssoProvider = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to pass ssoProvider in formPayload? Reference line 216.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, we don't need this. Thanks for pointing this out.

Comment on lines +113 to +116
config: {
ENVIRONMENT: 'production',
LANGUAGE_PREFERENCE_COOKIE_NAME: 'yum',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these configs?

Copy link
Contributor Author

@attiyaIshaque attiyaIshaque Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. we can't Pass ENVIRONMENT undefined.

Comment on lines 131 to 133
mergeConfig({
SHOW_CONFIGURABLE_EDX_FIELDS: true,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also what about these?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed these.

@attiyaIshaque attiyaIshaque force-pushed the attiya/VAN-1628-refactor-tests branch from 4fc3eac to 497db70 Compare November 22, 2023 07:02
@attiyaIshaque attiyaIshaque merged commit c097b5b into master Nov 22, 2023
6 checks passed
@attiyaIshaque attiyaIshaque deleted the attiya/VAN-1628-refactor-tests branch November 22, 2023 08:54
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.

2 participants