Skip to content
Snippets Groups Projects

feat(project info): initialised project info drawer

Merged Tadeusz Miesiąc requested to merge feature/project-info-tab into development
1 unresolved thread
Files
3
@@ -97,4 +97,21 @@ describe('ProjectInfoDrawer', () => {
);
expect(downloadButton).toHaveAttribute('download', 'sourceFile.txt');
});
it('should render the description when it exists', () => {
renderComponent(MOCKED_STORE);
const desc = screen.getByTestId('project-description');
expect(desc.innerHTML).toContain(
'For information on content, functionalities and referencing the Parkinson\'s disease map, click <a href="http://pdmap.uni.lu" target="_blank">here</a>',
);
});
it.skip('should not render the description when it does not exist', () => {
renderComponent();
const descriptionElement = screen.queryByText('This is the project description.');
expect(descriptionElement).not.toBeInTheDocument();
});
});
Loading