mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Resolve comments from SYL-2943
This commit is contained in:
parent
a8419bbdf2
commit
6bbe87c7ff
2 changed files with 3 additions and 3 deletions
|
|
@ -726,7 +726,7 @@ final class ManagingPromotionsContext implements Context
|
|||
}
|
||||
|
||||
/**
|
||||
* @Then /^it should have "([^"]+)%" discount$/
|
||||
* @Then it should have :amount discount
|
||||
*/
|
||||
public function itShouldHaveDiscount(string $amount): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
|
|||
{
|
||||
$action = $this->getElement('percentage_action_field');
|
||||
|
||||
return $action->find('css', 'input')->getValue();
|
||||
return $action->find('css', 'input')->getValue().'%';
|
||||
}
|
||||
|
||||
public function removeRuleAmount(string $channelCode): void
|
||||
|
|
@ -170,7 +170,6 @@ class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
|
|||
{
|
||||
return [
|
||||
'action_field' => '[id^="sylius_promotion_actions_"][id$="_configuration_%channelCode%_%field%"]',
|
||||
'percentage_action_field' => '[id^="sylius_promotion_actions_"][id$="_configuration_percentage"]',
|
||||
'actions' => '#actions',
|
||||
'applies_to_discounted' => '#sylius_promotion_appliesToDiscounted',
|
||||
'code' => '#sylius_promotion_code',
|
||||
|
|
@ -180,6 +179,7 @@ class UpdatePage extends BaseUpdatePage implements UpdatePageInterface
|
|||
'ends_at_time' => '#sylius_promotion_endsAt_time',
|
||||
'exclusive' => '#sylius_promotion_exclusive',
|
||||
'name' => '#sylius_promotion_name',
|
||||
'percentage_action_field' => '[id^="sylius_promotion_actions_"][id$="_configuration_percentage"]',
|
||||
'priority' => '#sylius_promotion_priority',
|
||||
'rule_amount' => '[id^="sylius_promotion_rules_"][id$="_configuration_%channelCode%_amount"]',
|
||||
'rules' => '#rules',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue