mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Revert "[Behat] Describe scenario for messing up products assignments after trying to delete taxon
This reverts commit baa01c01
This commit is contained in:
parent
cc137a567c
commit
a3e81518e1
3 changed files with 1 additions and 58 deletions
|
|
@ -1,29 +0,0 @@
|
|||
@managing_taxons
|
||||
Feature: Displaying products in proper taxon after trying to delete this taxon
|
||||
In order not to mess up the products to taxons assignments
|
||||
As an Administrator
|
||||
I want to keep the taxons structure the same after failed taxon deletion
|
||||
|
||||
Background:
|
||||
Given the store operates on a channel named "Web"
|
||||
And the store classifies its products as "T-Shirts"
|
||||
And the "T-Shirts" taxon has children taxon "Men" and "Women"
|
||||
And the store has a product "T-Shirt Coconut" available in "Web" channel
|
||||
And this product belongs to "T-Shirts"
|
||||
And the store has a product "T-Shirt Banana" available in "Web" channel
|
||||
And this product belongs to "Men"
|
||||
And the product "T-Shirt Banana" has a main taxon "Men"
|
||||
And the store has a product "T-Shirt Apple" available in "Web" channel
|
||||
And this product belongs to "Men"
|
||||
And the store has a product "T-Shirt Pear" available in "Web" channel
|
||||
And this product belongs to "Women"
|
||||
And the store has a product "T-Shirt Watermelon" available in "Web" channel
|
||||
And this product belongs to "Women"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Displaying products in proper taxon after trying to delete this taxon
|
||||
When I try to delete taxon named "Men"
|
||||
Then I should be notified that I cannot delete a taxon in use
|
||||
And I should see in taxon "Men" in the store products "T-Shirt Banana" and "T-Shirt Apple"
|
||||
But I should not see in taxon "Men" in the store products "T-Shirt Pear" and "T-Shirt Watermelon"
|
||||
|
|
@ -260,30 +260,6 @@ final class ProductContext implements Context
|
|||
Assert::false($this->indexPage->isProductOnList($productName));
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should see in taxon :taxon in the store products :firstProductName and :secondProductName
|
||||
*/
|
||||
public function iShouldSeeInTaxonInTheStoreProducts(TaxonInterface $taxon, string ...$productNames): void
|
||||
{
|
||||
$this->iCheckListOfProductsForTaxon($taxon);
|
||||
|
||||
foreach ($productNames as $productName) {
|
||||
Assert::true($this->indexPage->isProductOnList($productName));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should not see in taxon :taxon in the store products :firstProductName and :secondProductName
|
||||
*/
|
||||
public function iShouldNotSeeInTaxonInTheStoreProducts(TaxonInterface $taxon, string ...$productNames): void
|
||||
{
|
||||
$this->iCheckListOfProductsForTaxon($taxon);
|
||||
|
||||
foreach ($productNames as $productName) {
|
||||
Assert::false($this->indexPage->isProductOnList($productName));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then I should see empty list of products
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -10,21 +10,17 @@ default:
|
|||
|
||||
- sylius.behat.context.transform.channel
|
||||
- sylius.behat.context.transform.locale
|
||||
- sylius.behat.context.transform.product
|
||||
- sylius.behat.context.transform.shared_storage
|
||||
- sylius.behat.context.transform.taxon
|
||||
|
||||
- sylius.behat.context.setup.admin_security
|
||||
- sylius.behat.context.setup.channel
|
||||
- sylius.behat.context.setup.locale
|
||||
- sylius.behat.context.setup.product
|
||||
- sylius.behat.context.setup.product_taxon
|
||||
- sylius.behat.context.setup.admin_security
|
||||
- sylius.behat.context.setup.taxonomy
|
||||
|
||||
- sylius.behat.context.ui.admin.managing_taxons
|
||||
- sylius.behat.context.ui.admin.removing_taxons
|
||||
- sylius.behat.context.ui.admin.notification
|
||||
- sylius.behat.context.ui.shop.product
|
||||
|
||||
filters:
|
||||
tags: "@managing_taxons&&@ui"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue