You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Expose pretty-dom utility
* Allow users of prettyDOM to set max length
* Remove logDOM
* Add tests for prettyDOM
* Add yarn-error.log to .gitignore
* Add documencation for prettyDOM
* Update pretty-dom.js
`Unable to find an element with the placeholder text of: ${text} \n\n${htmlElementToDisplay(
91
+
`Unable to find an element with the placeholder text of: ${text} \n\n${debugDOM(
90
92
container,
91
93
)}`,
92
94
)
@@ -100,13 +102,13 @@ function getByLabelText(container, text, ...rest) {
100
102
constlabel=queryLabelByText(container,text)
101
103
if(label){
102
104
thrownewError(
103
-
`Found a label with the text of: ${text}, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly. \n\n${htmlElementToDisplay(
105
+
`Found a label with the text of: ${text}, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly. \n\n${debugDOM(
104
106
container,
105
107
)}`,
106
108
)
107
109
}else{
108
110
thrownewError(
109
-
`Unable to find a label with the text of: ${text} \n\n${htmlElementToDisplay(
111
+
`Unable to find a label with the text of: ${text} \n\n${debugDOM(
110
112
container,
111
113
)}`,
112
114
)
@@ -119,7 +121,7 @@ function getByText(container, text, ...rest) {
119
121
constel=queryByText(container,text, ...rest)
120
122
if(!el){
121
123
thrownewError(
122
-
`Unable to find an element with the text: ${text}. 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. \n\n${htmlElementToDisplay(
124
+
`Unable to find an element with the text: ${text}. 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. \n\n${debugDOM(
123
125
container,
124
126
)}`,
125
127
)
@@ -139,26 +141,14 @@ function getByAltText(container, alt) {
139
141
constel=queryByAltText(container,alt)
140
142
if(!el){
141
143
thrownewError(
142
-
`Unable to find an element with the alt text: ${alt} \n\n${htmlElementToDisplay(
144
+
`Unable to find an element with the alt text: ${alt} \n\n${debugDOM(
0 commit comments