Commit 9a3477e8 authored by lauriii's avatar lauriii

Issue #3030363 by andrewmacpherson, Krzysztof Domański: Add test to assert...

Issue #3030363 by andrewmacpherson, Krzysztof Domański: Add test to assert ajax buttons are operable with the spacebar key
parent c68e087c
......@@ -31,4 +31,19 @@ public function testAjaxImageButtonKeypressEnter() {
$this->assertNotEmpty($assertSession->waitForElementVisible('css', '#ajax-1-more-div'), 'Page updated after image button pressed');
}
/**
* Tests image buttons can be operated with the keyboard SPACE key.
*/
public function testAjaxImageButtonKeypressSpace() {
// Get a Field UI manage-display page.
$this->drupalGet('ajax_forms_image_button_form');
$assertSession = $this->assertSession();
$session = $this->getSession();
$button = $session->getPage()->findButton('Edit');
$button->keyPress(32);
$this->assertNotEmpty($assertSession->waitForElementVisible('css', '#ajax-1-more-div'), 'Page updated after image button pressed');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment