Skip to content

Commit

Permalink
[TaxRate][UI] Add missing behat step implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Mar 16, 2023
1 parent 81d9e2c commit e5f67c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Sylius/Behat/Context/Ui/Admin/ManagingTaxRateContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,19 @@ public function theTaxRateShouldAppearInTheRegistry(string $taxRateName): void
Assert::true($this->indexPage->isSingleResourceOnPage(['name' => $taxRateName]));
}

/**
* @Then the tax rate :taxRate should be included in price
*/
public function theTaxRateShouldIncludePrice(TaxRateInterface $taxRate): void
{
$this->updatePage->open(['id' => $taxRate->getId()]);

Assert::true(
$taxRate->isIncludedInPrice(),
sprintf('Tax rate is not included in price'),
);
}

/**
* @Then I should not see a tax rate with name :name
*/
Expand Down

0 comments on commit e5f67c5

Please sign in to comment.