45 lines
1.9 KiB
Gherkin
45 lines
1.9 KiB
Gherkin
@vendor_settlements
|
|
Feature: Vendor can manage settlements
|
|
In order to settle my settlements
|
|
As a Vendor
|
|
I want to visit settlements page, filter and accept them
|
|
|
|
Background:
|
|
Given the store operates on a channel named "United States"
|
|
And there is a "verified" vendor user "test@company.domain" registered in country with code "US"
|
|
And I am logged in as "test@company.domain"
|
|
|
|
@ui
|
|
Scenario: Vendor can see settlements
|
|
Given there is a "new" settlement with total amount of "100.00" and commission amount of "10.00"
|
|
And there is a "accepted" settlement with total amount of "540.00" and commission amount of "74.00"
|
|
And there is a "settled" settlement with total amount of "130.00" and commission amount of "12.71"
|
|
When I visit the vendor settlements page
|
|
Then I should see 3 settlements
|
|
|
|
@ui
|
|
Scenario: Vendor can not accept settlements with status other than "New"
|
|
Given there is a "accepted" settlement
|
|
And there is a "settled" settlement
|
|
When I visit the vendor settlements page
|
|
Then I should not see any accept button
|
|
|
|
@ui
|
|
Scenario: Vendor can accept new settlements
|
|
Given there is a "new" settlement
|
|
When I visit the vendor settlements page
|
|
And I accept first possible settlement
|
|
Then I should see "Settlement has been accepted successfully."
|
|
And I should see 1 settlements with status "Settled"
|
|
And I should see 0 settlements with status "New"
|
|
|
|
@ui
|
|
Scenario: Vendor can filter settlements by status
|
|
Given there is a "new" settlement with total amount of "100.00" and commission amount of "10.00"
|
|
And there is a "accepted" settlement with total amount of "540.00" and commission amount of "74.00"
|
|
And there is a "accepted" settlement with total amount of "130.00" and commission amount of "12.71"
|
|
When I visit the vendor settlements page
|
|
And I filter settlements by status "Accepted"
|
|
Then I should see 2 settlements
|
|
And I should see 0 settlements with status "New"
|