[Test Cases] Block user from closing payment popup feature


Whitelabel

Test Case

User should be able to place a successful order

Application

Whitelabel

Feature: Block User From Closing Popup Window Background: Whitelabel Homepage Given I have accessed Whitelabel's Home Page Scenario: User should be able to place a successful order Given I have add items to the cart And I have valid payment info When I attempt to place a new order Then I should be see the "Order placed!" success message

Test Case

User should be redirected to order cart if payment popup is closed

Application

Whitelabel

Feature: Block User From Closing Popup Window Background: Whitelabel Homepage Given I have accessed Whitelabel's Home Page Scenario Outline: User should be redirected to order cart if payment popup is closed Given I have add items to the cart When I select payment type with "<payment_brand>" | payment_brand | | Bizum | | Paypal | | Waylet | But I close the payment popup Then I should be redirected to the cart checkout page

Test Case

User should be redirected to order cart if payment popup is closed

Application

Whitelabel

Feature: Block User From Closing Popup Window Background: Whitelabel Homepage Given I have accessed Whitelabel's Home Page Scenario Outline: User should receive successful order message if payment popup has been closed during successful payment Given I have add items to the cart When I select payment type with "<payment_brand>" | payment_brand | | Bizum | | Paypal | | Waylet | And I proceed with the payment process But I close the payment popup before it finished loading And the payment has been successful Then I should be see the "Order placed!" success message