mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix alignment test step definition (#8354)
This commit is contained in:
parent
94f5d32f41
commit
68c2c976d4
@ -156,11 +156,11 @@ class CmsFormsContext implements Context
|
||||
if($formatting == 'bold') {
|
||||
call_user_func($assertFn, 'strong', $matchedNode->nodeName);
|
||||
} else if($formatting == 'left aligned') {
|
||||
if($matchedNode->getAttribute('style')) {
|
||||
call_user_func($assertFn, 'text-align: left;', $matchedNode->getAttribute('style'));
|
||||
if($matchedNode->getAttribute('class')) {
|
||||
call_user_func($assertFn, 'text-left', $matchedNode->getAttribute('class'));
|
||||
}
|
||||
} else if($formatting == 'right aligned') {
|
||||
call_user_func($assertFn, 'text-align: right;', $matchedNode->getAttribute('style'));
|
||||
call_user_func($assertFn, 'text-right', $matchedNode->getAttribute('class'));
|
||||
}
|
||||
}
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
Loading…
Reference in New Issue
Block a user