Skip to content

Commit a8a1e79

Browse files
authored
Fixed typo.
1 parent 31cc212 commit a8a1e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tips-tricks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ When possible, use `contains(text(), 'someTextHere')` rather than `text()='someT
289289
`contains()` ignores whitespace while `text()` accounts for it.
290290

291291
**Why?**
292-
If you are comparing text wihtin a selector and have an unexpected space, or a blank line above or below the string, `text()` will fail while the `contains(text())` format will catch it.
292+
If you are comparing text within a selector and have an unexpected space, or a blank line above or below the string, `text()` will fail while the `contains(text())` format will catch it.
293293
In this scenario `text()` is more exacting. Use it when you need to be very precise about what is getting compared.
294294

295295
<span style="color:green">
@@ -447,4 +447,4 @@ BAD:
447447

448448
<!-- Link Definitions -->
449449
[This test]: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Captcha/Test/Mftf/Test/StorefrontCaptchaRegisterNewCustomerTest.xml#L24
450-
[Data file]: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Captcha/Test/Mftf/Data/CaptchaConfigData.xml
450+
[Data file]: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Captcha/Test/Mftf/Data/CaptchaConfigData.xml

0 commit comments

Comments
 (0)