-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(debug): Adding debug log when a get call fails (#3)
* feat(debug_helper): Adding debug helper when a get call fails * fix(review): Few minor changes * moving pretty-format to the dep * fix(review_comments): Making the fixes mentioned in the review comments * Update README.md * Update element-queries.js
- Loading branch information
1 parent
d45b449
commit c8069e3
Showing
6 changed files
with
177 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,59 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`get throws a useful error message 1`] = `"Unable to find a label with the text of: LucyRicardo"`; | ||
exports[`get throws a useful error message 1`] = ` | ||
"Unable to find a label with the text of: LucyRicardo | ||
exports[`get throws a useful error message 2`] = `"Unable to find an element with the placeholder text of: LucyRicardo"`; | ||
[36m<div>[39m | ||
[36m<div />[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`get throws a useful error message 3`] = `"Unable to find an element with the text: LucyRicardo. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."`; | ||
exports[`get throws a useful error message 2`] = ` | ||
"Unable to find an element with the placeholder text of: LucyRicardo | ||
exports[`get throws a useful error message 4`] = `"Unable to find an element by: [data-testid=\\"LucyRicardo\\"]"`; | ||
[36m<div>[39m | ||
[36m<div />[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`get throws a useful error message 5`] = `"Unable to find an element with the alt text: LucyRicardo"`; | ||
exports[`get throws a useful error message 3`] = ` | ||
"Unable to find an element with the text: LucyRicardo. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. | ||
exports[`label with no form control 1`] = `"Found a label with the text of: alone, however no form control was found associated to that label. Make sure you're using the \\"for\\" attribute or \\"aria-labelledby\\" attribute correctly."`; | ||
[36m<div>[39m | ||
[36m<div />[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`totally empty label 1`] = `"Found a label with the text of: , however no form control was found associated to that label. Make sure you're using the \\"for\\" attribute or \\"aria-labelledby\\" attribute correctly."`; | ||
exports[`get throws a useful error message 4`] = ` | ||
"Unable to find an element by: [data-testid=\\"LucyRicardo\\"] | ||
[36m<div>[39m | ||
[36m<div />[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`get throws a useful error message 5`] = ` | ||
"Unable to find an element with the alt text: LucyRicardo | ||
[36m<div>[39m | ||
[36m<div />[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`label with no form control 1`] = ` | ||
"Found a label with the text of: alone, however no form control was found associated to that label. Make sure you're using the \\"for\\" attribute or \\"aria-labelledby\\" attribute correctly. | ||
[36m<div>[39m | ||
[36m<label>[39m | ||
[0mAll alone[0m | ||
[36m</label>[39m | ||
[36m</div>[39m" | ||
`; | ||
|
||
exports[`totally empty label 1`] = ` | ||
"Found a label with the text of: , however no form control was found associated to that label. Make sure you're using the \\"for\\" attribute or \\"aria-labelledby\\" attribute correctly. | ||
[36m<div>[39m | ||
[36m<label />[39m | ||
[36m</div>[39m" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters