mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Behat preview mode finder being too specific (#5846)
This commit is contained in:
parent
7a095b1a70
commit
4d2fd04c64
@ -383,7 +383,7 @@ class CmsUiContext extends BehatContext {
|
||||
assertNotNull($controls, 'Preview controls not found');
|
||||
|
||||
$label = $controls->find('xpath', sprintf(
|
||||
'.//label[(@for="%s")]',
|
||||
'.//*[count(*)=0 and contains(text(), \'%s\')]',
|
||||
$mode
|
||||
));
|
||||
assertNotNull($label, 'Preview mode switch not found');
|
||||
|
Loading…
Reference in New Issue
Block a user