Skip to content

Commit

Permalink
Fixes PalisadoesFoundation#1514 redesign the Posts screen for the tal…
Browse files Browse the repository at this point in the history
…awa user portal
  • Loading branch information
gauravsingh94 committed Mar 16, 2024
1 parent 80a75c1 commit 15c726c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/screens/UserPortal/Home/Home.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const MOCKS = [
lastName: 'abc',
},
],
pinned: false,
pinned: true,
},
],
},
Expand Down Expand Up @@ -265,4 +265,23 @@ describe('Testing Home Screen [User Portal]', () => {
userEvent.type(postInput, 'Testing post content');
expect(postInput).toHaveValue('Testing post content');
});

test('Scroll right button should be in document for pinned posts.', async () => {
render(
<MockedProvider addTypename={false} link={link}>
<BrowserRouter>
<Provider store={store}>
<I18nextProvider i18n={i18nForTest}>
<Home />
</I18nextProvider>
</Provider>
</BrowserRouter>
</MockedProvider>,
);

await wait();

const scrollRightButton = screen.getByTestId('scrollRightButton');
expect(scrollRightButton).toBeInTheDocument();
});
});

0 comments on commit 15c726c

Please sign in to comment.