diff --git a/packages/redux-devtools-inspector-monitor-test-tab/test/TestGenerator.spec.tsx b/packages/redux-devtools-inspector-monitor-test-tab/test/TestGenerator.spec.tsx
index 4dfb2eda..51a15ae8 100644
--- a/packages/redux-devtools-inspector-monitor-test-tab/test/TestGenerator.spec.tsx
+++ b/packages/redux-devtools-inspector-monitor-test-tab/test/TestGenerator.spec.tsx
@@ -29,12 +29,12 @@ const TestGeneratorAsAny = TestGenerator as any;
describe('TestGenerator component', () => {
it('should show warning message when no params provided', () => {
- render();
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ const { container } = render();
+ expect(container.firstChild).toMatchSnapshot();
});
it('should be empty when no actions provided', () => {
- render(
+ const { container } = render(
{
useCodemirror={false}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
it("should match function template's test for first action", () => {
- render(
+ const { container } = render(
{
useCodemirror={false}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
it("should match string template's test for first action", () => {
- render(
+ const { container } = render(
{
selectedActionId={1}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
it('should generate test for the last action when selectedActionId not specified', () => {
- render(
+ const { container } = render(
{
useCodemirror={false}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
it('should generate test for vanilla js class', () => {
- render(
+ const { container } = render(
{
useCodemirror={false}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
it('should generate test for vanilla js class with string template', () => {
- render(
+ const { container } = render(
{
useCodemirror={false}
/>
);
- expect(screen.getByRole('textbox')).toMatchSnapshot();
+ expect(container.firstChild).toMatchSnapshot();
});
});