Skip to content

Commit

Permalink
feat: fixed displaying field and visibility forms
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavkeblysh committed Oct 26, 2023
1 parent c7bf361 commit 482d644
Show file tree
Hide file tree
Showing 2 changed files with 143 additions and 599 deletions.
28 changes: 0 additions & 28 deletions src/profile/ProfilePage.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,34 +148,6 @@ describe('<ProfilePage />', () => {
expect(tree).toMatchSnapshot();
});

it('viewing other profile with name and country', () => {
const contextValue = {
authenticatedUser: { userId: 123, username: 'staff', administrator: true },
config: getConfig(),
};

const component = (
<ProfilePageWrapper
contextValue={contextValue}
params={{ username: 'verified' }} // Override default params
store={mockStore({
...storeMocks.viewOtherProfile,
profilePage: {
...storeMocks.viewOtherProfile.profilePage,
account: {
...storeMocks.viewOtherProfile.profilePage.account,
name: 'user',
country: 'EN',
},
},
})}
match={{ params: { username: 'verified' } }} // Override default match
/>
);
const tree = renderer.create(component).toJSON();
expect(tree).toMatchSnapshot();
});

it('while saving an edited bio', () => {
const contextValue = {
authenticatedUser: { userId: 123, username: 'staff', administrator: true },
Expand Down
Loading

0 comments on commit 482d644

Please sign in to comment.