@manufac/general-tests 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/specs/utils.js +4 -1
- package/package.json +1 -1
package/dist/specs/utils.js
CHANGED
|
@@ -910,6 +910,9 @@ async function fillField({ field, locator, page }) {
|
|
|
910
910
|
*/
|
|
911
911
|
async function hasNativeValidationError(fieldLocator) {
|
|
912
912
|
return await fieldLocator.evaluate((element) => {
|
|
913
|
-
return element instanceof HTMLInputElement
|
|
913
|
+
return ((element instanceof HTMLInputElement ||
|
|
914
|
+
element instanceof HTMLTextAreaElement ||
|
|
915
|
+
element instanceof HTMLSelectElement) &&
|
|
916
|
+
!element.checkValidity());
|
|
914
917
|
});
|
|
915
918
|
}
|