refactor: rename inContext param to inContextSidebar (#1022)
This commit is contained in:
@@ -29,7 +29,7 @@ function DiscussionsSidebar({ intl }) {
|
||||
showTitleBar={false}
|
||||
>
|
||||
<iframe
|
||||
src={`${discussionsUrl}?inContext`}
|
||||
src={`${discussionsUrl}?inContextSidebar`}
|
||||
className="d-flex w-100 h-100 border-0"
|
||||
title={intl.formatMessage(messages.discussionsTitle)}
|
||||
/>
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('Discussions Trigger', () => {
|
||||
renderWithProvider();
|
||||
expect(screen.queryByTitle('Discussions')).toBeInTheDocument();
|
||||
expect(screen.queryByTitle('Discussions'))
|
||||
.toHaveAttribute('src', `http://localhost:2002/${courseId}/category/${unitId}?inContext`);
|
||||
.toHaveAttribute('src', `http://localhost:2002/${courseId}/category/${unitId}?inContextSidebar`);
|
||||
});
|
||||
|
||||
it('should show nothing if unit has no discussions associated with it', async () => {
|
||||
|
||||
Reference in New Issue
Block a user