Skip to content

Commit

Permalink
Test adding new taxon
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed May 10, 2024
1 parent c11c424 commit a17de6d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@managing_taxons
Feature: Preventing a potential XSS attack while adding new taxon
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 "Category" taxonomy
And the store has "<script>alert('xss')</script>" taxonomy
And I am logged in as an administrator

@ui @javascript @no-api
Scenario: Preventing a potential XSS attack while adding new taxon
When I want to create a new taxon
Then I should be able to change its parent taxon to "Category"
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function iDescribeItAs($description, $language)
/**
* @Given /^I set its (parent taxon to "[^"]+")$/
* @Given /^I change its (parent taxon to "[^"]+")$/
* @Given /^I should be able to change its (parent taxon to "[^"]+")$/
*/
public function iChangeItsParentTaxonTo(TaxonInterface $taxon)
{
Expand Down

0 comments on commit a17de6d

Please sign in to comment.