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.
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
features/product/managing_products/preventing_xss_attack_while_editing_product.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,16 @@ | ||
@managing_products | ||
Feature: Preventing a potential XSS attack while selecting similar product | ||
In order to keep my information safe | ||
As an Administrator | ||
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 association type "Accessories" | ||
And the store has "<script>alert('xss')</script>" and "LG headphones" products | ||
And I am logged in as an administrator | ||
|
||
@ui @javascript @no-api | ||
Scenario: Preventing a potential XSS attack while editing product | ||
When I want to create a new simple product | ||
Then I should be able to associate as "Accessories" the "LG headphones" product |
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