mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Behat] Normalize whitespace characters in string
This commit is contained in:
parent
a0b99068e9
commit
61adbd84b1
1 changed files with 2 additions and 1 deletions
|
|
@ -98,8 +98,9 @@ class ShowPage extends SymfonyPage implements ShowPageInterface
|
|||
}
|
||||
|
||||
$row = $nameTd->getParent();
|
||||
$text = $row->find('css', '[data-test-product-attribute-value]')->getText();
|
||||
|
||||
return trim($row->find('css', '[data-test-product-attribute-value]')->getText());
|
||||
return str_replace(["\u{200B}", "\u{200A}", "\u{202F}"], ' ', trim($text));
|
||||
}
|
||||
|
||||
public function getAttributeListByName(string $name): array
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue