chore: Working toward killing enzyme and cleaning up test noise. (#32207)

This commit is contained in:
Evan Rusackas
2025-02-11 12:14:36 -07:00
committed by GitHub
parent d3b854a833
commit 319a860f23
238 changed files with 4167 additions and 6334 deletions

View File

@@ -16,8 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
import { render, screen, waitFor } from 'spec/helpers/testing-library';
import userEvent from '@testing-library/user-event';
import {
render,
screen,
userEvent,
waitFor,
} from 'spec/helpers/testing-library';
import {
getChartMetadataRegistry,
ChartMetadata,
@@ -102,7 +106,7 @@ test('renders extra checkboxes when type is time series', async () => {
await screen.findByRole('button', { name: 'Show Markers' }),
).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Hide Line' })).toBeInTheDocument();
});
}, 10000);
test('enables apply and ok buttons', async () => {
const { container } = render(<AnnotationLayer {...defaultProps} />);