- Oct 24, 2013
- Oct 17, 2013
-
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
- Oct 16, 2013
-
-
Jonathan Hedstrom authored
Add support for Drupal autocomplete form elements.
-
Bevan Rudge authored
-
-
Bevan Rudge authored
Drupal's autocomplete is awfully incompatible with Mink. While it is easy to open an autocomplete suggestion box with `setValue()` or '_I fill in "LABEL" with "VALUE"_', it is impossible to close the resulting autocomplete suggestion box without writing tricky custom code or something really ugly like '_Press "save", Wait for one second, Press "save"_'. And if the autocomplete suggestion boxes are not closed, then form-submission fails, because they are blocked by Drupal's `autocomplete.js`. This patch introduces two methods to improve the situation: 1. `pressButton($button)` overrides `MinkExtension->pressButton()` to call `wait()` before passing execution back to `MinkExtension->pressButton()`. `wait()` uses a javascript condition parameter that waits for any `#autocomplete` suggestion boxes to close. If there are none open, Mink will not wait, so there is no performance impact for pages that don't ever open an autocomplete suggestion list. This new method duplicates the features of the existing method `assertPressButton()`, so I have deleted that one, and included the corresponding `@When` step definition in the new method. 2. `pressKey($char, $field)` allows a key to be "pressed" on a field. Special keys like escape, enter and tab are supported. Support for other special keys would be useful. This is necessary to allow autocomplete suggestion boxes to be closed. If they are not closed, then the `wait()` in `pressButton()` will time out and corresponding form-submit will get blocked by Drupal's `autocomplete.js`. > NOTE once https://github.com/Behat/Mink/pull/345 is merged we can detect whether there are still any autocomplete boxes open by evaluating `wait()`'s return value. We should do that and possibly even throw an exception or warning if there are boxes that are still open. The step definition for the new method is `/^(?:|I )press the "([^"]*)" key in the "([^"]*)" field$/`. E.g. > And I press the "Esc" key in the "LABEL" field
-
- Oct 05, 2013
-
-
- Sep 27, 2013
-
-
Jonathan Hedstrom authored
Assert node editable
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
-
- Sep 26, 2013
-
-
Jonathan Hedstrom authored
-
- Sep 20, 2013
-
-
Michael Nielson authored
-
Michael Nielson authored
-
- Sep 19, 2013
-
-
Michael Nielson authored
-
- Sep 18, 2013
- Sep 11, 2013
-
-
Michael Nielson authored
-
- Sep 03, 2013
-
-
- Aug 31, 2013
-
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
- Aug 30, 2013
-
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
added the possibility to use drupal driver and drush driver at same time
-
Vincenzo Di Biaggio authored
-
- Aug 29, 2013
-
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
- Aug 15, 2013
-
-
- Aug 13, 2013
-
-
Jonathan Hedstrom authored
-
- Aug 12, 2013
-
-
Jonathan Hedstrom authored
-
Jonathan Hedstrom authored
-
- Aug 07, 2013
-
-
Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
-
- Aug 06, 2013
-
-
Issue #2052967 by eliza411, genebobmiller: Fixed Random usernames contain illegal characters, causing tests to fail.
-
- Aug 03, 2013
-
-
Jonathan Hedstrom authored
-
- Aug 02, 2013
-
-
Jonathan Hedstrom authored
-