fix(test): change data-test-id to data-test in FlashProvider (#13304)

This commit is contained in:
Bruno Motta 2021-02-23 18:20:09 -03:00 committed by GitHub
parent e8114be99a
commit 8ef52babfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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(
<Provider store={store}>
<FlashProvider messages={messages}>
<div data-test-id="my-component">My Component</div>
<div data-test="my-component">My Component</div>
</FlashProvider>
</Provider>,
);
@ -44,7 +44,7 @@ test('messages should only be inserted in the State when the component is mounte
const { rerender } = render(
<Provider store={store}>
<FlashProvider messages={messages}>
<div data-teste-id="my-component">My Component</div>
<div data-teste="my-component">My Component</div>
</FlashProvider>
</Provider>,
);
@ -56,7 +56,7 @@ test('messages should only be inserted in the State when the component is mounte
rerender(
<Provider store={store}>
<FlashProvider messages={[...messages, ['info', 'teste message 03']]}>
<div data-teste-id="my-component">My Component</div>
<div data-teste="my-component">My Component</div>
</FlashProvider>
</Provider>,
);