- {!inIframe
- && }
+
- {!inIframe && }
+
);
}
diff --git a/src/discussions/discussions-home/DiscussionsHome.test.jsx b/src/discussions/discussions-home/DiscussionsHome.test.jsx
index b6518351..23a0a52e 100644
--- a/src/discussions/discussions-home/DiscussionsHome.test.jsx
+++ b/src/discussions/discussions-home/DiscussionsHome.test.jsx
@@ -88,35 +88,10 @@ describe('DiscussionsHome', () => {
window.parent = parent;
});
- describe.each([
- {
- queryParam: 'inIframe=True',
- iframeView: true,
- },
- {
- queryParam: 'inIframe=False',
- iframeView: false,
- },
- {
- queryParam: '',
- iframeView: false,
- },
- ])(
- 'Header/Footer visibility',
- ({
- queryParam,
- iframeView,
- }) => {
- test(`inIframe query param ${queryParam}`, async () => {
- renderComponent(`/${courseId}/topics?${queryParam}`);
- if (iframeView) {
- expect(screen.queryByRole('banner')).not.toBeInTheDocument();
- expect(screen.queryByRole('contentinfo')).not.toBeInTheDocument();
- } else {
- expect(screen.queryByRole('banner')).toBeInTheDocument();
- expect(screen.queryByRole('contentinfo')).toBeInTheDocument();
- }
- });
- },
- );
+ test('header, course navigation bar and footer are visible', async () => {
+ renderComponent();
+ expect(screen.queryByRole('banner')).toBeInTheDocument();
+ expect(document.getElementById('courseTabsNavigation')).toBeInTheDocument();
+ expect(screen.queryByRole('contentinfo')).toBeInTheDocument();
+ });
});