fix tests

Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
Kiss Miklos
2023-01-17 02:28:52 +01:00
parent f18e86d58f
commit 5523f06afc
@@ -19,6 +19,7 @@ import SentryIssuesTable from './SentryIssuesTable';
import { SentryIssue } from '../../api';
import mockIssue from '../../api/mock/sentry-issue-mock.json';
import { renderInTestApp } from '@backstage/test-utils';
import { DateTime } from 'luxon';
describe('SentryIssuesTable', () => {
it('should render headers in a table', async () => {
@@ -62,6 +63,7 @@ describe('SentryIssuesTable', () => {
},
count: '101',
userCount: 202,
lastSeen: DateTime.now().toISO(),
},
];
const table = await renderInTestApp(
@@ -105,6 +107,6 @@ describe('SentryIssuesTable', () => {
}}
/>,
);
expect(await table.findByText('Last 24h')).toBeInTheDocument();
expect(await table.findByText('Stats for 24h')).toBeInTheDocument();
});
});