forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Checkout] Add scenario for preventing from a potential XSS attack
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
features/checkout/addressing_order/preventing_from_xss_attack_during_checkout.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@checkout | ||
Feature: Preventing from a potential XSS attack during updating the address in the checkout | ||
In order to keep my information safe | ||
As a Visitor | ||
I want to be protected against the potential XSS attacks | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "PHP T-Shirt" priced at "$19.99" | ||
And the store ships everywhere for Free | ||
And I have product "PHP T-Shirt" in the cart | ||
And I am at the checkout addressing step | ||
|
||
@ui @javascript @no-api | ||
Scenario: Preventing from a potential XSS attack during updating the address in the checkout | ||
When I specify the email as "john.doe@example.com" | ||
And I specify the billing address as "Ankh Morpork", "Frost Alley", "90210", "United States" for "Jon Doe" | ||
And I specify the province name manually as '<img """><script>alert("XSS")</script>">' for billing address | ||
And I complete the addressing step | ||
And I decide to change my address | ||
Then I should be able to update the address without unexpected alert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters