mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
minor #16659 Bring back archiving promotion test (TheMilek)
This PR was merged into the api-platform-3 branch. Discussion ---------- | Q | A |-----------------|----- | Branch? | api-platform-3 <!-- see the comment below --> | Bug fix? | no | New feature? | no | BC breaks? | no | License | MIT <!-- - Bug fixes must be submitted against the 1.13 branch - Features and deprecations must be submitted against the 1.14 branch - Features, removing deprecations and BC breaks must be submitted against the 2.0 branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- Bring back archiving promotion test
This commit is contained in:
commit
6c516f7bcc
1 changed files with 41 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
@managing_promotions
|
||||
Feature: Archiving promotions
|
||||
In order to hide no longer available promotions from the list and customers' use
|
||||
As an Administrator
|
||||
I want to archive promotions
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And there is a promotion "Christmas sale"
|
||||
And there is also a promotion "New Year sale"
|
||||
And I am logged in as an administrator
|
||||
|
||||
@api @ui
|
||||
Scenario: Archiving a promotion
|
||||
When I browse promotions
|
||||
And I archive the "Christmas sale" promotion
|
||||
Then I should see a single promotion in the list
|
||||
And I should see the promotion "New Year sale" in the list
|
||||
|
||||
@domain
|
||||
Scenario: Archiving a promotion does not remove it from the database
|
||||
When I archive the "Christmas sale" promotion
|
||||
Then the promotion "Christmas sale" should still exist in the registry
|
||||
|
||||
@api @ui
|
||||
Scenario: Seeing only archived promotions
|
||||
Given the promotion "Christmas sale" is archived
|
||||
When I browse promotions
|
||||
And I filter archival promotions
|
||||
Then I should see a single promotion in the list
|
||||
And I should see the promotion "Christmas sale" in the list
|
||||
And I should not see the promotion "New Year sale" in the list
|
||||
|
||||
@api @ui
|
||||
Scenario: Restoring an archival promotion
|
||||
Given the promotion "Christmas sale" is archived
|
||||
When I browse promotions
|
||||
And I filter archival promotions
|
||||
And I restore the "Christmas sale" promotion
|
||||
Then I should be viewing non archival promotions
|
||||
And I should see 2 promotions on the list
|
||||
Loading…
Add table
Reference in a new issue