File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -974,7 +974,7 @@ test('오직 VIP를 보기위해 사용자목록을 표시했을때, 오직 VIP
974
974
const { getAllByTestId } = render (< UsersList users= {allUsers} showOnlyVIP= {true }/ > );
975
975
976
976
// Assert - 화면과 데이터를 섞어서 검증
977
- expect (getAllByTestId (' user' )).toEqual (' [<li data-testid ="user">John Doe</li>]' );
977
+ expect (getAllByTestId (' user' )).toEqual (' [<li data-test-id ="user">John Doe</li>]' );
978
978
});
979
979
980
980
```
@@ -1010,7 +1010,7 @@ test('오직 VIP를 보기위해 사용자목록을 표시했을때, 오직 VIP
1010
1010
// the markup code (part of React component)
1011
1011
<h3 >
1012
1012
<Badge pill className =" fixed_badge" variant =" dark" >
1013
- <span data-testid =" errorsLabel" >{value}</span > <!-- note the attribute data-testid -->
1013
+ <span data-test-id =" errorsLabel" >{value}</span > <!-- note the attribute data-test-id -->
1014
1014
</Badge >
1015
1015
</h3 >
1016
1016
```
@@ -1262,7 +1262,7 @@ export default function ProductsList() {
1262
1262
fetchProducts ();
1263
1263
}, []);
1264
1264
1265
- return products ? < div> {products}< / div> : < div data- testid = ' no-products-message' > No products< / div>
1265
+ return products ? < div> {products}< / div> : < div data- test - id = ' no-products-message' > No products< / div>
1266
1266
}
1267
1267
1268
1268
// test
You can’t perform that action at this time.
0 commit comments