Skip to content

Commit c5116c6

Browse files
authored
Merge pull request #163 from otavionetoca/master
Updates data-testid attribute to data-test-id
2 parents ae85c40 + 08aec91 commit c5116c6

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
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

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

readme-pt-br.md

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

10311031
// Assert - Mix UI & data in assertion
1032-
expect(getAllByTestId('user')).toEqual('[<li data-testid="user">John Doe</li>]');
1032+
expect(getAllByTestId('user')).toEqual('[<li data-test-id="user">John Doe</li>]');
10331033
});
10341034

10351035
```
@@ -1065,7 +1065,7 @@ test('When flagging to show only VIP, should display only VIP members', () => {
10651065
// the markup code (part of React component)
10661066
<h3>
10671067
<Badge pill className="fixed_badge" variant="dark">
1068-
<span data-testid="errorsLabel">{value}</span> <!-- note the attribute data-testid -->
1068+
<span data-test-id="errorsLabel">{value}</span> <!-- note the attribute data-test-id -->
10691069
</Badge>
10701070
</h3>
10711071
```
@@ -1319,7 +1319,7 @@ export default function ProductsList() {
13191319
fetchProducts();
13201320
}, []);
13211321

1322-
return products ? <div>{products}</div> : <div data-testid='no-products-message'>No products</div>
1322+
return products ? <div>{products}</div> : <div data-test-id='no-products-message'>No products</div>
13231323
}
13241324

13251325
// test

readme-zh-CN.md

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

10281028
// Assert - Mix UI & data in assertion
1029-
expect(getAllByTestId('user')).toEqual('[<li data-testid="user">John Doe</li>]');
1029+
expect(getAllByTestId('user')).toEqual('[<li data-test-id="user">John Doe</li>]');
10301030
});
10311031

10321032
```
@@ -1062,7 +1062,7 @@ test('When flagging to show only VIP, should display only VIP members', () => {
10621062
// the markup code (part of React component)
10631063
<h3>
10641064
<Badge pill className="fixed_badge" variant="dark">
1065-
<span data-testid="errorsLabel">{value}</span> <!-- note the attribute data-testid -->
1065+
<span data-test-id="errorsLabel">{value}</span> <!-- note the attribute data-test-id -->
10661066
</Badge>
10671067
</h3>
10681068
```
@@ -1315,7 +1315,7 @@ export default function ProductsList() {
13151315
fetchProducts();
13161316
}, []);
13171317

1318-
return products ? <div>{products}</div> : <div data-testid='no-products-message'>No products</div>
1318+
return products ? <div>{products}</div> : <div data-test-id='no-products-message'>No products</div>
13191319
}
13201320

13211321
// test

readme.kr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ test('오직 VIP를 보기위해 사용자목록을 표시했을때, 오직 VIP
974974
const { getAllByTestId } = render(<UsersList users={allUsers} showOnlyVIP={true}/>);
975975

976976
// 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>]');
978978
});
979979

980980
```
@@ -1010,7 +1010,7 @@ test('오직 VIP를 보기위해 사용자목록을 표시했을때, 오직 VIP
10101010
// the markup code (part of React component)
10111011
<h3>
10121012
<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 -->
10141014
</Badge>
10151015
</h3>
10161016
```
@@ -1262,7 +1262,7 @@ export default function ProductsList() {
12621262
fetchProducts();
12631263
}, []);
12641264

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>
12661266
}
12671267

12681268
// test

readme.md

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

10091009
// Assert - Mix UI & data in assertion
1010-
expect(getAllByTestId("user")).toEqual('[<li data-testid="user">John Doe</li>]');
1010+
expect(getAllByTestId("user")).toEqual('[<li data-test-id="user">John Doe</li>]');
10111011
});
10121012
```
10131013

@@ -1037,8 +1037,8 @@ test("When flagging to show only VIP, should display only VIP members", () => {
10371037
// the markup code (part of React component)
10381038
<h3>
10391039
<Badge pill className="fixed_badge" variant="dark">
1040-
<span data-testid="errorsLabel">{value}</span>
1041-
<!-- note the attribute data-testid -->
1040+
<span data-test-id="errorsLabel">{value}</span>
1041+
<!-- note the attribute data-test-id -->
10421042
</Badge>
10431043
</h3>
10441044
```
@@ -1271,7 +1271,7 @@ export default function ProductsList() {
12711271
fetchProducts();
12721272
}, []);
12731273

1274-
return products ? <div>{products}</div> : <div data-testid="no-products-message">No products</div>;
1274+
return products ? <div>{products}</div> : <div data-test-id="no-products-message">No products</div>;
12751275
}
12761276

12771277
// test

0 commit comments

Comments
 (0)