Skip to content

Commit

Permalink
fix: broken e2e because of data changed
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Nov 21, 2024
1 parent 7ee3b77 commit 5a08bdd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "Starting point to setup a X Components project",
"private": true,
"scripts": {
"serve": "vite dev",
"serve": "vite dev --host",
"serve:docker": "VUE_APP_DEVELOPMENT_DOCKER=true vite dev",
"serve:dist": "http-server dist -a localhost --cors --gzip",
"build": "rollup -c",
Expand Down
12 changes: 7 additions & 5 deletions tests/e2e/cucumber/facets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Feature: Facets component
Then filter <filterNumber> from facet "<facetName>" is selected is false
Examples:
| query | filterNumber | facetName | view |
| shirt | 1 | brand | macbook-13 |
| shirt | 1 | brand | iphone-x |
| shirt | 1 | gender | macbook-13 |
| shirt | 1 | gender | iphone-x |

Scenario Outline: 3. Multiple filters from the same facet can be selected
Given start page with "<view>" size view
Expand All @@ -52,9 +52,11 @@ Feature: Facets component
And filter <filterNumber2> from facet "<facetName>" is selected is true
Examples:
| query | filterNumber | facetName | filterNumber2 | view |
| shirt | 2 | brand | 1 | macbook-13 |
| shirt | 2 | brand | 1 | iphone-x |
| shirt | 0 | gender | 1 | macbook-13 |
| shirt | 0 | gender | 1 | iphone-x |

@skip
# TODO: Resume once the response returns multiple facets
Scenario Outline: 4. Multiple filters from different facets can be selected
Given start page with "<view>" size view
When search bar is clicked
Expand All @@ -74,7 +76,7 @@ Feature: Facets component
| shirt | 2 | brand | 1 | fit | macbook-13 |
| shirt | 2 | brand | 1 | fit | iphone-x |

@skip
@skip
# TODO: Resume once the response returns hierarchical filters
Scenario Outline: 5. Hierarchical filters selection
Given start page with "<view>" size view
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/cucumber/multiple-interactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Feature: Multiple interactions

Examples:
| query | view | nextQueryItem | filterNumber | facetName | queryWithRTs | relatedTagItem |
| tshirt | macbook-13 | 1 | 2 | brand | tshirt | 1 |
| tshirt | iphone-x | 1 | 2 | brand | tshirt | 1 |
| tshirt | macbook-13 | 1 | 1 | gender | tshirt | 1 |
| tshirt | iphone-x | 1 | 1 | gender | tshirt | 1 |

0 comments on commit 5a08bdd

Please sign in to comment.