Test setRangeText() method is not available in datetimelocal inputs. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Running tests on input with attributes: {"type":"datetime-local"} element.value = '0123456789XYZ' PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('datetime-local') does not support selection.. PASS element.value is "" PASS successfullyParsed is true TEST COMPLETE