Skip to content

Commit cf1a553

Browse files
committed
fix: solve tests & snapshot issues
1 parent 523bef2 commit cf1a553

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/profile/__snapshots__/ProfilePage.test.jsx.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ exports[`<ProfilePage /> Renders correctly in various states successfully redire
442442
</div>
443443
</div>
444444
</div>
445+
<div />
445446
<div
446447
class="pgn-transition-replace-group position-relative mb-5"
447448
>
@@ -2483,6 +2484,7 @@ exports[`<ProfilePage /> Renders correctly in various states test country edit w
24832484
</p>
24842485
</div>
24852486
</div>
2487+
<div />
24862488
<div
24872489
class="pgn-transition-replace-group position-relative mb-5"
24882490
>
@@ -3482,6 +3484,7 @@ exports[`<ProfilePage /> Renders correctly in various states test education edit
34823484
</div>
34833485
</div>
34843486
</div>
3487+
<div />
34853488
<div
34863489
class="pgn-transition-replace-group position-relative mb-5"
34873490
>
@@ -5356,6 +5359,7 @@ exports[`<ProfilePage /> Renders correctly in various states test preferreded la
53565359
</p>
53575360
</div>
53585361
</div>
5362+
<div />
53595363
<div
53605364
class="pgn-transition-replace-group position-relative mb-5"
53615365
>
@@ -6076,6 +6080,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing other profi
60766080
</p>
60776081
</div>
60786082
</div>
6083+
<div />
60796084
<div
60806085
class="pgn-transition-replace-group position-relative mb-5"
60816086
>
@@ -6639,6 +6644,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing own profile
66396644
</p>
66406645
</div>
66416646
</div>
6647+
<div />
66426648
<div
66436649
class="pgn-transition-replace-group position-relative mb-5"
66446650
>
@@ -7516,6 +7522,7 @@ exports[`<ProfilePage /> Renders correctly in various states while saving an edi
75167522
</p>
75177523
</div>
75187524
</div>
7525+
<div />
75197526
<div
75207527
class="pgn-transition-replace-group position-relative mb-5"
75217528
>
@@ -8457,6 +8464,7 @@ exports[`<ProfilePage /> Renders correctly in various states while saving an edi
84578464
</p>
84588465
</div>
84598466
</div>
8467+
<div />
84608468
<div
84618469
class="pgn-transition-replace-group position-relative mb-5"
84628470
>
@@ -9326,6 +9334,7 @@ exports[`<ProfilePage /> Renders correctly in various states without credentials
93269334
</p>
93279335
</div>
93289336
</div>
9337+
<div />
93299338
<div
93309339
class="pgn-transition-replace-group position-relative mb-5"
93319340
>

src/profile/data/sagas.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import profileSaga, {
3232
handleSaveProfile,
3333
handleSaveProfilePhoto,
3434
handleDeleteProfilePhoto,
35+
fetchThirdPartyAuthContext,
3536
} from './sagas';
3637
import * as ProfileApiService from './services';
3738
/* eslint-enable import/first */
@@ -49,6 +50,8 @@ describe('RootSaga', () => {
4950
.toEqual(takeEvery(profileActions.SAVE_PROFILE_PHOTO.BASE, handleSaveProfilePhoto));
5051
expect(gen.next().value)
5152
.toEqual(takeEvery(profileActions.DELETE_PROFILE_PHOTO.BASE, handleDeleteProfilePhoto));
53+
expect(gen.next().value)
54+
.toEqual(takeEvery(profileActions.EXTENDED_PROFILE_FIELDS.BASE, fetchThirdPartyAuthContext));
5255

5356
expect(gen.next().value).toBeUndefined();
5457
});

src/profile/data/selectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export const profilePageSelector = createSelector(
409409

410410
// Extended profile fields
411411
// Combine the field properties and its values
412-
extendedProfileFields: extendedProfileFields.map((field) => ({
412+
extendedProfileFields: extendedProfileFields?.map((field) => ({
413413
...field,
414414
value: account.extendedProfile?.find(
415415
(extendedProfileField) => extendedProfileField.fieldName === field.name,

0 commit comments

Comments
 (0)