@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.
@@ -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 && !element.checkValidity();
913
+ return ((element instanceof HTMLInputElement ||
914
+ element instanceof HTMLTextAreaElement ||
915
+ element instanceof HTMLSelectElement) &&
916
+ !element.checkValidity());
914
917
  });
915
918
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manufac/general-tests",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "A library for general tests for landing pages",
5
5
  "repository": {
6
6
  "type": "git",