mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[Behat] Make scenario for adding a promotion in different language non javascript
This commit is contained in:
parent
b19cd53a86
commit
970820243e
2 changed files with 1 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ Feature: Adding promotion in different languages
|
|||
And that channel allows to shop using "English (United States)" and "Polish (Poland)" locales
|
||||
And I am logged in as an administrator
|
||||
|
||||
@api @ui @javascript
|
||||
@api @ui
|
||||
Scenario: Adding a promotion with a label in a different language
|
||||
When I want to create a new promotion
|
||||
And I specify its code as "FULL_METAL_PROMOTION"
|
||||
|
|
|
|||
|
|
@ -193,8 +193,6 @@ class CreatePage extends BaseCreatePage implements CreatePageInterface
|
|||
|
||||
public function hasLabel(string $label, string $localeCode): bool
|
||||
{
|
||||
$this->getDocument()->find('css', 'div[data-locale="' . $localeCode . '"]')->click();
|
||||
|
||||
$labelElement = $this->getDocument()->find('css', sprintf('label:contains("%s")', $label));
|
||||
if (null === $labelElement) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue