Skip to content

Commit f90609a

Browse files
committed
Update readme-es.md
1 parent f6a1a97 commit f90609a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme-es.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10171017
const { getAllByTestId } = render(<UsersList users={allUsers} showOnlyVIP={true} />);
10181018

10191019
// Afirmar - Mezcla de UI y datos en las aserciones
1020-
expect(getAllByTestId("user")).toEqual('[<li data-testid="user">John Doe</li>]');
1020+
expect(getAllByTestId("user")).toEqual('[<li data-test-id="user">John Doe</li>]');
10211021
});
10221022
```
10231023

@@ -1047,8 +1047,8 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10471047
// the markup code (part of React component)
10481048
<h3>
10491049
<Badge pill className="fixed_badge" variant="dark">
1050-
<span data-testid="errorsLabel">{value}</span>
1051-
<!-- note the attribute data-testid -->
1050+
<span data-test-id="errorsLabel">{value}</span>
1051+
<!-- note the attribute data-test-id -->
10521052
</Badge>
10531053
</h3>
10541054
```
@@ -1283,7 +1283,7 @@ export default function ProductsList() {
12831283
fetchProducts();
12841284
}, []);
12851285

1286-
return products ? <div>{products}</div> : <div data-testid="no-products-message">No products</div>;
1286+
return products ? <div>{products}</div> : <div data-test-id="no-products-message">No products</div>;
12871287
}
12881288

12891289
// test

0 commit comments

Comments
 (0)