Merge pull request #5350 from open-sausages/pulls/4.0/fix-chosen-behat-use

Fix Chosen.js selector for Behat feature
This commit is contained in:
Hamish Friedlander 2016-04-20 14:22:22 +12:00
commit 1b8b869754

View File

@ -490,7 +490,7 @@ class CmsUiContext extends BehatContext {
assertNotNull($container, 'Chosen.js field container not found');
// Click on newly expanded list element, indirectly setting the dropdown value
$linkEl = $container->find('xpath', './/a[./@href]');
$linkEl = $container->find('xpath', './/a');
assertNotNull($linkEl, 'Chosen.js link element not found');
$this->getSession()->wait(100); // wait for dropdown overlay to appear
$linkEl->click();