Skip to content

Commit

Permalink
test: update tests because of data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Nov 22, 2024
1 parent 8dd1732 commit 7988a9a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 35 deletions.
46 changes: 26 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions 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 All @@ -21,8 +21,8 @@
"lint": "eslint src tests --ext .ts,.tsx,.vue",
"lint:fix": "npm run lint -- --fix",
"install:local": "npm install file:../x/packages/x-components/empathyco-x-components-6.0.0-alpha.3.tgz --no-save",
"install:adapter-platform:local": "npm install file:../x/packages/x-adapter-platform/empathyco-x-adapter-platform-1.0.0-alpha.73.tgz --no-save",
"install:types:local": "npm install file:../x/packages/x-types/empathyco-x-types-10.0.0-alpha.68.tgz",
"install:adapter-platform:local": "npm install file:../x/packages/x-adapter-platform/empathyco-x-adapter-platform-1.1.0-alpha.9.tgz --no-save",
"install:types:local": "npm install file:../x/packages/x-types/empathyco-x-types-10.1.0-alpha.6.tgz --no-save",
"install:utils:local": "npm install file:../x/packages/x-archetype-utils/empathyco-x-archetype-utils-0.1.0-alpha.20.tgz --no-save",
"install:xds:local": "npm install file:../x/packages/x-tailwindcss/empathyco-x-tailwindcss-1.0.0-alpha.25.tgz --no-save",
"json:csv": "json-csv ./src/i18n/messages",
Expand All @@ -31,11 +31,11 @@
},
"dependencies": {
"@empathyco/x-adapter": "^8.1.0-alpha.0",
"@empathyco/x-adapter-platform": "^1.1.0-alpha.3",
"@empathyco/x-archetype-utils": "^2.0.0-alpha.1",
"@empathyco/x-components": "^6.0.0-alpha.3",
"@empathyco/x-adapter-platform": "^1.1.0-alpha.8",
"@empathyco/x-archetype-utils": "^2.0.0-alpha.2",
"@empathyco/x-components": "^6.0.0-alpha.18",
"@empathyco/x-deep-merge": "^2.0.3-alpha.1",
"@empathyco/x-types": "^10.1.0-alpha.3",
"@empathyco/x-types": "^10.1.0-alpha.5",
"@empathyco/x-utils": "^1.0.3-alpha.1",
"tslib": "~2.6.0",
"vue": "~3.4.38",
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 |
2 changes: 1 addition & 1 deletion tests/e2e/cucumber/no-results.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: No-results component
And "<query>" is searched
Then no results message is displayed
And recommendations are displayed
And there are no results
Then there are no results
Examples:
| query | view |
| asdfgh | macbook-13 |
Expand Down

0 comments on commit 7988a9a

Please sign in to comment.