Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundled product hyva tests #80

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

Vinai
Copy link
Collaborator

@Vinai Vinai commented Sep 13, 2022

No description provided.

@peterjaap
Copy link
Contributor

Tested with;

$ gh pr checkout 80
$ CYPRESS_MAGENTO2_BASE_URL=https://hyva-demo.elgentos.io npx cypress run --spec cypress/integration/hyva/catalog/bundle.spec.js

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        10.8.0                                                                         │
  │ Browser:        Electron 102 (headless)                                                        │
  │ Node Version:   v14.19.0 (/home/peterjaap/.nvm/versions/node/v14.19.0/bin/node)                │
  │ Specs:          1 found (bundle.spec.js)                                                       │
  │ Searched:       cypress/integration/hyva/catalog/bundle.spec.js                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  bundle.spec.js                                                                  (1 of 1)


  Bundle products test suite
    ✓ Can render the product name (703ms)
    ✓ Can set the price to zero when every associated product qty is zero (1151ms)
    ✓ Can calculate the price based on selected options (1133ms)
    ✓ Can display selection quantities (1137ms)
    ✓ Can add a bundled product to the cart (3687ms)


  5 passing (8s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        5                                                                                │
  │ Passing:      5                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     8 seconds                                                                        │
  │ Spec Ran:     bundle.spec.js                                                                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


====================================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  bundle.spec.js                           00:08        5        5        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:08        5        5        -        -        -  

@peterjaap peterjaap merged commit 2bd0b6b into elgentos:main Sep 14, 2022
@peterjaap
Copy link
Contributor

Thanks @Vinai !

@Vinai Vinai deleted the bundled-product-hyva-tests branch September 5, 2023 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants