From 7a1739792f91d905dd5a7afc47b224d9ece4cac5 Mon Sep 17 00:00:00 2001 From: Denis LE Date: Tue, 29 Oct 2024 16:27:14 +0100 Subject: [PATCH] docs(best-practices): improve wording (#33342) --- docs/src/best-practices-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/best-practices-js.md b/docs/src/best-practices-js.md index 0c4e71d3a5..20f55c61d0 100644 --- a/docs/src/best-practices-js.md +++ b/docs/src/best-practices-js.md @@ -90,7 +90,7 @@ await page #### Prefer user-facing attributes to XPath or CSS selectors -Your DOM can easily change so having your tests depend on your DOM structure can lead to failing tests. For example consider selecting this button by its CSS classes. Should the designer change something then the class might change breaking your test. +Your DOM can easily change so having your tests depend on your DOM structure can lead to failing tests. For example consider selecting this button by its CSS classes. Should the designer change something then the class might change, thus breaking your test. ```js