Skip to content
Snippets Groups Projects
Commit 66c380e2 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

add wait for report

parent 80836806
No related branches found
No related tags found
1 merge request!1267Tmss code cleanup part 4
......@@ -77,6 +77,11 @@ describe('Project Report Render With Contents', () => {
expect(component.container.querySelector('.failureProgress')).toBeNull();
}, { timeout: 5000 });
await waitFor(() => {
const element = component.container.querySelector('.report-div');
expect(element).toBeInTheDocument();
});
const componentSnapshotAfterDataLoading = component.asFragment();
expect(componentSnapshotAfterDataLoading).toMatchSnapshot("After data Loading");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment