From 8ef52babfed9aab31ce382ea8787e0ff14a073f8 Mon Sep 17 00:00:00 2001 From: Bruno Motta Date: Tue, 23 Feb 2021 18:20:09 -0300 Subject: [PATCH] fix(test): change data-test-id to data-test in FlashProvider (#13304) --- .../components/FlashProvider/FlashProvider.test.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/superset-frontend/src/components/FlashProvider/FlashProvider.test.tsx b/superset-frontend/src/components/FlashProvider/FlashProvider.test.tsx index c91c0a0a4b8c1..91d9be6524626 100644 --- a/superset-frontend/src/components/FlashProvider/FlashProvider.test.tsx +++ b/superset-frontend/src/components/FlashProvider/FlashProvider.test.tsx @@ -16,8 +16,8 @@ * specific language governing permissions and limitations * under the License. */ -import '@testing-library/jest-dom'; -import { render, screen } from '@testing-library/react'; + +import { render, screen } from 'spec/helpers/testing-library'; import React from 'react'; import { Provider } from 'react-redux'; import { store } from 'src/views/store'; @@ -28,7 +28,7 @@ test('Rerendering correctly with default props', () => { render( -
My Component
+
My Component
, ); @@ -44,7 +44,7 @@ test('messages should only be inserted in the State when the component is mounte const { rerender } = render( -
My Component
+
My Component
, ); @@ -56,7 +56,7 @@ test('messages should only be inserted in the State when the component is mounte rerender( -
My Component
+
My Component
, );