mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
1b8b869754
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user