Improved test
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,10 @@ describe('ProblemsTable', () => {
|
||||
<ProblemsTable problems={problems} dynatraceBaseUrl="__dynatrace__" />,
|
||||
</ApiProvider>,
|
||||
);
|
||||
expect(await rendered.findByTitle('Filter')).toBeInTheDocument();
|
||||
|
||||
// Checking for Title from mocked problems
|
||||
expect(
|
||||
await rendered.findByText('this IS a big problem'),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user