Skip to content

Commit 406b9a4

Browse files
committed
Partial revert of ddd6d70
1 parent 5af4542 commit 406b9a4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/compass-components/src/components/modals/confirmation-modal.spec.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import React from 'react';
2-
import {
3-
render,
4-
screen,
5-
cleanup,
6-
within,
7-
} from '@mongodb-js/testing-library-compass';
2+
import { render, screen, cleanup } from '@mongodb-js/testing-library-compass';
83
import { expect } from 'chai';
94

105
import ConfirmationModal from './confirmation-modal';
@@ -28,8 +23,8 @@ describe('ConfirmationModal Component', function () {
2823
});
2924

3025
it('should show the modal button', function () {
31-
const { container } = renderModal();
32-
const button = within(container).getByText('Confirm').closest('button');
26+
renderModal();
27+
const button = screen.getByText('Confirm').closest('button');
3328
expect(button).to.not.match('disabled');
3429
});
3530

0 commit comments

Comments
 (0)