X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FAjax%2FElementValidationTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FFunctionalJavascriptTests%2FAjax%2FElementValidationTest.php;h=48bda56cdf930d02fd4f3f492400267220e7a90f;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=0000000000000000000000000000000000000000;hpb=9424afc6c1f518c301bf87a23c047d1873435d05;p=yaffs-website diff --git a/web/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php b/web/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php new file mode 100644 index 000000000..48bda56cd --- /dev/null +++ b/web/core/tests/Drupal/FunctionalJavascriptTests/Ajax/ElementValidationTest.php @@ -0,0 +1,53 @@ +drupalGet('ajax_validation_test'); + $page = $this->getSession()->getPage(); + $assert = $this->assertSession(); + + // Partially complete the form with a string. + $page->fillField('drivertext', 'some dumb text'); + // Move focus away from this field to trigger AJAX. + $page->findField('spare_required_field')->focus(); + + // When the AJAX command updates the DOM a