@@ -107,7 +107,7 @@ The example below will find the input node for the following DOM structures:
107
107
<!-- Native-->
108
108
109
109
``` javascript
110
- import { getByLabelText } from ' dom- testing-library'
110
+ import { getByLabelText } from ' @ testing-library/dom '
111
111
112
112
const container = document .body
113
113
const inputNode = getByLabelText (container, ' Username' )
@@ -172,7 +172,7 @@ matches the given [`TextMatch`](#textmatch).
172
172
<!-- Native-->
173
173
174
174
``` js
175
- import { getByPlaceholderText } from ' dom- testing-library'
175
+ import { getByPlaceholderText } from ' @ testing-library/dom '
176
176
177
177
const container = document .body
178
178
const inputNode = getByPlaceholderText (container, ' Username' )
@@ -229,7 +229,7 @@ matching the given [`TextMatch`](#textmatch).
229
229
<!-- Native-->
230
230
231
231
``` js
232
- import { getByText } from ' dom- testing-library'
232
+ import { getByText } from ' @ testing-library/dom '
233
233
234
234
const container = document .body
235
235
const aboutAnchorNode = getByText (container, / about/ i )
@@ -305,7 +305,7 @@ as it's deprecated).
305
305
<!-- Native-->
306
306
307
307
``` js
308
- import { getByAltText } from ' dom- testing-library'
308
+ import { getByAltText } from ' @ testing-library/dom '
309
309
310
310
const container = document .body
311
311
const incrediblesPosterImg = getByAltText (container, / incredibles. *? poster/ i )
@@ -360,7 +360,7 @@ Will also find a `title` element within an SVG.
360
360
<!-- Native-->
361
361
362
362
``` js
363
- import { getByTitle } from ' dom- testing-library'
363
+ import { getByTitle } from ' @ testing-library/dom '
364
364
365
365
const container = document .body
366
366
const deleteElement = getByTitle (container, ' Delete' )
@@ -419,7 +419,7 @@ document.getElementById('lastName').value = 'Norris'
419
419
<!-- Native-->
420
420
421
421
``` js
422
- import { getByDisplayValue } from ' dom- testing-library'
422
+ import { getByDisplayValue } from ' @ testing-library/dom '
423
423
424
424
const container = document .body
425
425
const lastNameInput = getByDisplayValue (container, ' Norris' )
@@ -457,7 +457,7 @@ document.getElementById('messageTextArea').value = 'Hello World'
457
457
<!-- Native-->
458
458
459
459
``` js
460
- import { getByDisplayValue } from ' dom- testing-library'
460
+ import { getByDisplayValue } from ' @ testing-library/dom '
461
461
462
462
const container = document .body
463
463
const messageTextArea = getByDisplayValue (container, ' Hello World' )
@@ -499,7 +499,7 @@ matches the given [`TextMatch`](#textmatch).
499
499
<!-- Native-->
500
500
501
501
``` js
502
- import { getByDisplayValue } from ' dom- testing-library'
502
+ import { getByDisplayValue } from ' @ testing-library/dom '
503
503
504
504
const container = document .body
505
505
const selectElement = getByDisplayValue (container, ' Alaska' )
@@ -549,7 +549,7 @@ accepts a [`TextMatch`](#textmatch)).
549
549
<!-- Native-->
550
550
551
551
``` js
552
- import { getByRole } from ' dom- testing-library'
552
+ import { getByRole } from ' @ testing-library/dom '
553
553
554
554
const container = document .body
555
555
const dialogContainer = getByRole (container, ' dialog' )
@@ -599,7 +599,7 @@ also accepts a [`TextMatch`](#textmatch)).
599
599
<!-- Native-->
600
600
601
601
``` js
602
- import { getByTestId } from ' dom- testing-library'
602
+ import { getByTestId } from ' @ testing-library/dom '
603
603
604
604
const container = document .body
605
605
const usernameInput = getByTestId (container, ' username-input' )
0 commit comments