[Behat] Make scenario for adding a promotion in different language non javascript

This commit is contained in:
Grzegorz Sadowski 2024-10-17 06:44:19 +02:00
parent b19cd53a86
commit 970820243e
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 1 additions and 3 deletions

View file

@ -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"

View file

@ -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;