Skip to content

Commit

Permalink
change "data-test-id" to "data-test"
Browse files Browse the repository at this point in the history
  • Loading branch information
yardz committed Feb 23, 2021
1 parent 9a05d6a commit 0b2df82
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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>,
);
Expand All @@ -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>,
);
Expand All @@ -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>,
);
Expand Down

0 comments on commit 0b2df82

Please sign in to comment.