diff --git a/src/profile/ProfilePage.test.jsx b/src/profile/ProfilePage.test.jsx index 3a5444a41..411ca4536 100644 --- a/src/profile/ProfilePage.test.jsx +++ b/src/profile/ProfilePage.test.jsx @@ -29,7 +29,7 @@ const requiredProfilePageProps = { deleteProfilePhoto: () => {}, openField: () => {}, closeField: () => {}, - match: { params: { username: 'staff' } }, + params: { username: 'staff' }, }; // Mock language cookie @@ -67,29 +67,28 @@ beforeEach(() => { }); const ProfilePageWrapper = ({ - contextValue, store, match, requiresParentalConsent, + contextValue, store, params, requiresParentalConsent, }) => ( - + ); ProfilePageWrapper.defaultProps = { - match: { params: { username: 'staff' } }, + params: { username: 'staff' }, requiresParentalConsent: null, - }; ProfilePageWrapper.propTypes = { contextValue: PropTypes.shape({}).isRequired, store: PropTypes.shape({}).isRequired, - match: PropTypes.shape({}), + params: PropTypes.shape({}), requiresParentalConsent: PropTypes.bool, }; @@ -297,7 +296,7 @@ describe('', () => { ); const wrapper = mount(component); diff --git a/src/profile/__snapshots__/ProfilePage.test.jsx.snap b/src/profile/__snapshots__/ProfilePage.test.jsx.snap index de8093b6c..746bd2b02 100644 --- a/src/profile/__snapshots__/ProfilePage.test.jsx.snap +++ b/src/profile/__snapshots__/ProfilePage.test.jsx.snap @@ -56,6 +56,25 @@ exports[` Renders correctly in various states test country edit w
+
+
+ +
+
profile avatar Renders correctly in various states test country edit w >

+ > + staff +

@@ -109,7 +130,52 @@ exports[` Renders correctly in various states test country edit w

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states test country edit w >

+ > + staff +

@@ -140,7 +208,52 @@ exports[` Renders correctly in various states test country edit w

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states test education edit
+
+
+ +
+
profile avatar Renders correctly in various states test education edit >

+ > + staff +

@@ -2379,7 +2513,52 @@ exports[` Renders correctly in various states test education edit

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states test education edit >

+ > + staff +

@@ -2410,7 +2591,52 @@ exports[` Renders correctly in various states test education edit

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states test preferreded la
+
+
+ +
+
profile avatar Renders correctly in various states test preferreded la >

+ > + staff +

@@ -3443,7 +3690,52 @@ exports[` Renders correctly in various states test preferreded la

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states test preferreded la >

+ > + staff +

@@ -3474,7 +3768,52 @@ exports[` Renders correctly in various states test preferreded la

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states viewing other profi >

+ > + staff +

@@ -5406,7 +5747,52 @@ exports[` Renders correctly in various states viewing other profi

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states viewing other profi >

+ > + staff +

@@ -5465,10 +5853,55 @@ exports[` Renders correctly in various states viewing other profi

-
+ + View My Records + + + + + + + in a new tab + + + + +
+
Renders correctly in various states viewing other profi

+
+
+
+

+ Social Links +

+
+
    +
+
Renders correctly in various states viewing other profi

+
+
+
+

+ My Certificates +

+
+ You don't have any certificates yet. +
+
@@ -5662,6 +6153,25 @@ exports[` Renders correctly in various states viewing own profile
+
+
+ +
+
profile avatar Renders correctly in various states viewing own profile >

+ > + staff +

@@ -5715,7 +6227,52 @@ exports[` Renders correctly in various states viewing own profile

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states viewing own profile >

+ > + staff +

@@ -5746,7 +6305,52 @@ exports[` Renders correctly in various states viewing own profile

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states while saving an edi
+
+
+ +
+
profile avatar Renders correctly in various states while saving an edi >

+ > + staff +

@@ -6652,7 +7277,52 @@ exports[` Renders correctly in various states while saving an edi

Renders correctly in various states while saving an edi >

+ > + staff +

@@ -6683,7 +7355,52 @@ exports[` Renders correctly in various states while saving an edi

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states while saving an edi
+
+
+ +
+
profile avatar Renders correctly in various states while saving an edi >

+ > + staff +

@@ -7656,7 +8394,52 @@ exports[` Renders correctly in various states while saving an edi

Renders correctly in various states while saving an edi >

+ > + staff +

@@ -7687,7 +8472,52 @@ exports[` Renders correctly in various states while saving an edi

+ > + + View My Records + + + + + + + in a new tab + + + + +
Renders correctly in various states without credentials
+
+
+ +
+
profile avatar Renders correctly in various states without credentials >

+ > + staff +

@@ -8685,7 +9536,9 @@ exports[` Renders correctly in various states without credentials >

+ > + staff +