Skip to content

Commit c20852b

Browse files
committed
fix: solve tests & snapshot issues
1 parent 177091e commit c20852b

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
@@ -441,6 +441,7 @@ exports[`<ProfilePage /> Renders correctly in various states successfully redire
441441
</div>
442442
</div>
443443
</div>
444+
<div />
444445
<div
445446
class="pgn-transition-replace-group position-relative mb-5"
446447
>
@@ -2482,6 +2483,7 @@ exports[`<ProfilePage /> Renders correctly in various states test country edit w
24822483
</p>
24832484
</div>
24842485
</div>
2486+
<div />
24852487
<div
24862488
class="pgn-transition-replace-group position-relative mb-5"
24872489
>
@@ -3481,6 +3483,7 @@ exports[`<ProfilePage /> Renders correctly in various states test education edit
34813483
</div>
34823484
</div>
34833485
</div>
3486+
<div />
34843487
<div
34853488
class="pgn-transition-replace-group position-relative mb-5"
34863489
>
@@ -5355,6 +5358,7 @@ exports[`<ProfilePage /> Renders correctly in various states test preferreded la
53555358
</p>
53565359
</div>
53575360
</div>
5361+
<div />
53585362
<div
53595363
class="pgn-transition-replace-group position-relative mb-5"
53605364
>
@@ -6074,6 +6078,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing other profi
60746078
</p>
60756079
</div>
60766080
</div>
6081+
<div />
60776082
<div
60786083
class="pgn-transition-replace-group position-relative mb-5"
60796084
>
@@ -6637,6 +6642,7 @@ exports[`<ProfilePage /> Renders correctly in various states viewing own profile
66376642
</p>
66386643
</div>
66396644
</div>
6645+
<div />
66406646
<div
66416647
class="pgn-transition-replace-group position-relative mb-5"
66426648
>
@@ -7514,6 +7520,7 @@ exports[`<ProfilePage /> Renders correctly in various states while saving an edi
75147520
</p>
75157521
</div>
75167522
</div>
7523+
<div />
75177524
<div
75187525
class="pgn-transition-replace-group position-relative mb-5"
75197526
>
@@ -8455,6 +8462,7 @@ exports[`<ProfilePage /> Renders correctly in various states while saving an edi
84558462
</p>
84568463
</div>
84578464
</div>
8465+
<div />
84588466
<div
84598467
class="pgn-transition-replace-group position-relative mb-5"
84608468
>
@@ -9324,6 +9332,7 @@ exports[`<ProfilePage /> Renders correctly in various states without credentials
93249332
</p>
93259333
</div>
93269334
</div>
9335+
<div />
93279336
<div
93289337
class="pgn-transition-replace-group position-relative mb-5"
93299338
>

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)