Skip to content

Commit 68f8989

Browse files
committed
Re-phrase words about test-id usage
1 parent f9630bc commit 68f8989

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/5/en/part5d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ The test trusts that when creating a new note, there is only one input field on
480480
page.getByRole('textbox')
481481
```
482482

483-
If there were more fields, the test would break. Because of this, it would be better to add a test-id to the form input and search for it in the test based on this id.
483+
If there were more fields, the test would break. Because of this, it could be better to add a <i>test-id</i> to the form input and search for it in the test based on this id.
484484

485485
**Note:** the test will only pass the first time. The reason for this is that its expectation
486486

src/content/5/fi/osa5d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Testi luottaa siihen, että uutta muistiinpanoa luotaessa sivulla on ainoastaan
443443
page.getByRole('textbox')
444444
```
445445

446-
Jos kenttiä olisi useampia, testi hajoaisi. Tämän takia olisi jälleen parempi lisätä lomakkeen kentälle testi-id ja hakea kenttä testissä id:n perusteella.
446+
Jos kenttiä olisi useampia, testi hajoaisi. Tämän takia voisi olla parempi lisätä lomakkeen kentälle <i>test-id</i> ja hakea kenttä testissä id:n perusteella.
447447

448448
**Huom:** testi ei mene läpi kuin ensimmäisellä kerralla suoritettaessa. Syynä tälle on se, että ekspektaatio
449449

0 commit comments

Comments
 (0)