Skip to content

Commit 868daac

Browse files
committed
Update readme-pl.md
1 parent f90609a commit 868daac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme-pl.md

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

10031003
// Assert - Mix UI & data in assertion
1004-
expect(getAllByTestId("user")).toEqual('[<li data-testid="user">John Doe</li>]');
1004+
expect(getAllByTestId("user")).toEqual('[<li data-test-id="user">John Doe</li>]');
10051005
});
10061006
```
10071007

@@ -1031,8 +1031,8 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10311031
// the markup code (part of React component)
10321032
<h3>
10331033
<Badge pill className="fixed_badge" variant="dark">
1034-
<span data-testid="errorsLabel">{value}</span>
1035-
<!-- note the attribute data-testid -->
1034+
<span data-test-id="errorsLabel">{value}</span>
1035+
<!-- note the attribute data-test-id -->
10361036
</Badge>
10371037
</h3>
10381038
```
@@ -1267,7 +1267,7 @@ export default function ProductsList() {
12671267
fetchProducts();
12681268
}, []);
12691269

1270-
return products ? <div>{products}</div> : <div data-testid="no-products-message">No products</div>;
1270+
return products ? <div>{products}</div> : <div data-test-id="no-products-message">No products</div>;
12711271
}
12721272

12731273
// test

0 commit comments

Comments
 (0)