FIX Behat preview mode finder being too specific (#5846)

This commit is contained in:
Hamish Friedlander 2016-07-28 17:59:31 +12:00 committed by Sam Minnée
parent 7a095b1a70
commit 4d2fd04c64

View File

@ -383,7 +383,7 @@ class CmsUiContext extends BehatContext {
assertNotNull($controls, 'Preview controls not found'); assertNotNull($controls, 'Preview controls not found');
$label = $controls->find('xpath', sprintf( $label = $controls->find('xpath', sprintf(
'.//label[(@for="%s")]', './/*[count(*)=0 and contains(text(), \'%s\')]',
$mode $mode
)); ));
assertNotNull($label, 'Preview mode switch not found'); assertNotNull($label, 'Preview mode switch not found');