Skip to content
Snippets Groups Projects
Verified Commit d29fd50d authored by Alex Pott's avatar Alex Pott
Browse files

Revert "Issue #3396536 by fjgarlin, catch, kim.pepper: [random test failure]...

Revert "Issue #3396536 by fjgarlin, catch, kim.pepper: [random test failure] Re-enable AjaxTest::testAjaxFocus()"

This reverts commit e6304cd9.

(cherry picked from commit 966fd63a)
parent 98887e87
No related branches found
No related tags found
7 merge requests!122353526426-warning-for-missing,!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...,!8325Update file Sort.php,!8095Expose document root on install
Pipeline #165548 passed
......@@ -301,6 +301,7 @@ public function testUiAjaxException() {
* Tests ajax focus handling.
*/
public function testAjaxFocus() {
$this->markTestSkipped("Skipped due to frequent random test failures. See https://www.drupal.org/project/drupal/issues/3396536");
$this->drupalGet('/ajax_forms_test_get_form');
$this->assertNotNull($select = $this->assertSession()->elementExists('css', '#edit-select'));
......@@ -326,6 +327,14 @@ public function testAjaxFocus() {
$has_focus_id = $this->getSession()->evaluateScript('document.activeElement.id');
$this->assertEquals('edit-textfield-2', $has_focus_id);
// Test textfield with 'change' event listener with refocus-blur set to
// FALSE.
$textfield2->setValue('Llamas say yarhar');
$textfield3->focus();
$this->assertSession()->assertWaitOnAjaxRequest();
$has_focus_id = $this->getSession()->evaluateScript('document.activeElement.id');
$this->assertEquals('edit-textfield-2', $has_focus_id);
// Test textfield with 'change' event.
$textfield3->focus();
$textfield3->setValue('Wasps buzz');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment