({
.mockImplementation(() => Promise.resolve(mockEntityPermissions)),
})),
}));
+jest.mock(
+ '../../components/Entity/EntityHeaderTitle/EntityHeaderTitle.component',
+ () => {
+ return jest
+ .fn()
+ .mockImplementation(() => EntityHeaderTitle.component
);
+ }
+);
+jest.mock('../../components/common/DomainLabel/DomainLabel.component', () => {
+ return {
+ DomainLabel: jest
+ .fn()
+ .mockImplementation(() => DomainLabel.component
),
+ };
+});
describe('TestSuiteDetailsPage component', () => {
it('component should render', async () => {
@@ -110,6 +125,12 @@ describe('TestSuiteDetailsPage component', () => {
expect(
await screen.findByText('TitleBreadcrumb.component')
).toBeInTheDocument();
+ expect(
+ await screen.findByText('EntityHeaderTitle.component')
+ ).toBeInTheDocument();
+ expect(
+ await screen.findByText('DomainLabel.component')
+ ).toBeInTheDocument();
expect(
await screen.findByText('ManageButton.component')
).toBeInTheDocument();