@@ -35,8 +35,15 @@ display value.
3535document .getElementById (' lastName' ).value = ' Norris'
3636```
3737
38- <Tabs defaultValue = " native" values = { [ { label: ' Native' , value: ' native' , }, {
39- label: ' React' , value: ' react' , }, { label: ' Cypress' , value: ' cypress' , }, ] } >
38+ <Tabs
39+ defaultValue = " native"
40+ values = { [
41+ { label: ' Native' , value: ' native' , },
42+ { label: ' React' , value: ' react' , },
43+ { label: ' Angular' , value: ' angular' , },
44+ { label: ' Cypress' , value: ' cypress' , },
45+ ]
46+ } >
4047<TabItem value = " native" >
4148
4249``` js
@@ -53,6 +60,16 @@ import {render, screen} from '@testing-library/react'
5360
5461render (< MyComponent / > )
5562const lastNameInput = screen .getByDisplayValue (' Norris' )
63+ ```
64+
65+ </TabItem >
66+ <TabItem value = " angular" >
67+
68+ ``` ts
69+ import {render , screen } from ' @testing-library/angular'
70+
71+ await render (MyComponent )
72+ const lastNameInput = screen .getByDisplayValue (' Norris' )
5673```
5774
5875 </TabItem >
@@ -75,8 +92,15 @@ cy.findByDisplayValue('Norris').should('exist')
7592document .getElementById (' messageTextArea' ).value = ' Hello World'
7693```
7794
78- <Tabs defaultValue = " native" values = { [ { label: ' Native' , value: ' native' , }, {
79- label: ' React' , value: ' react' , }, { label: ' Cypress' , value: ' cypress' , }, ] } >
95+ <Tabs
96+ defaultValue = " native"
97+ values = { [
98+ { label: ' Native' , value: ' native' , },
99+ { label: ' React' , value: ' react' , },
100+ { label: ' Angular' , value: ' angular' , },
101+ { label: ' Cypress' , value: ' cypress' , },
102+ ]
103+ } >
80104<TabItem value = " native" >
81105
82106``` js
@@ -93,6 +117,16 @@ import {render, screen} from '@testing-library/react'
93117
94118render (< MyComponent / > )
95119const messageTextArea = screen .getByDisplayValue (' Hello World' )
120+ ```
121+
122+ </TabItem >
123+ <TabItem value = " angular" >
124+
125+ ``` ts
126+ import {render , screen } from ' @testing-library/angular'
127+
128+ await render (MyComponent )
129+ const messageTextArea = screen .getByDisplayValue (' Hello World' )
96130```
97131
98132 </TabItem >
@@ -119,8 +153,15 @@ matches the given [`TextMatch`](queries/about.mdx#textmatch).
119153</select >
120154```
121155
122- <Tabs defaultValue = " native" values = { [ { label: ' Native' , value: ' native' , }, {
123- label: ' React' , value: ' react' , }, { label: ' Cypress' , value: ' cypress' , }, ] } >
156+ <Tabs
157+ defaultValue = " native"
158+ values = { [
159+ { label: ' Native' , value: ' native' , },
160+ { label: ' React' , value: ' react' , },
161+ { label: ' Angular' , value: ' angular' , },
162+ { label: ' Cypress' , value: ' cypress' , },
163+ ]
164+ } >
124165<TabItem value = " native" >
125166
126167``` js
@@ -137,6 +178,16 @@ import {render, screen} from '@testing-library/react'
137178
138179render (< MyComponent / > )
139180const selectElement = screen .getByDisplayValue (' Alaska' )
181+ ```
182+
183+ </TabItem >
184+ <TabItem value = " angular" >
185+
186+ ``` ts
187+ import {render , screen } from ' @testing-library/angular'
188+
189+ await render (MyComponent )
190+ const selectElement = screen .getByDisplayValue (' Alaska' )
140191```
141192
142193 </TabItem >
0 commit comments