Commit b7df418f authored by Matt Glaman's avatar Matt Glaman

Issue #2701341: Demo migrations not populating product reference field with all values (#192)

parent b2a89905
......@@ -165,6 +165,9 @@ script:
# If this isn't an upgrade, we test if any features are overridden.
- if [[ "$UPGRADE" == none ]]; then ../../scripts/check-overridden.sh; fi
# Fix bad Commerce Migrate release for testing the demo.
- if [[ "$UPGRADE" == "7.x-2.34" || "$UPGRADE" == "7.x-2.33" || "$UPGRADE" == "7.x-2.32" || "$UPGRADE" == "7.x-2.31" || "$UPGRADE" == "7.x-2.30" || "$UPGRADE" == "7.x-2.29" || "$UPGRADE" == "7.x-2.28" || "$UPGRADE" == "7.x-2.27" ]]; then drush mi --all --update; fi
# Run Behat tests.
- if [[ "$TEST_FEATURES_OVERRIDES" != 1 ]]; then ./bin/behat --config behat.travis.yml --tags ~@overrides; fi
- if [[ "$TEST_FEATURES_OVERRIDES" == 1 ]]; then ./bin/behat --config behat.travis.yml --tags @overrides; fi
......
......@@ -34,6 +34,7 @@ projects[commerce_autosku][download][type] = git
projects[commerce_autosku][download][revision] = 32e86f4
projects[commerce_autosku][download][branch] = 7.x-1.x
projects[commerce_migrate][version] = 1.2
projects[commerce_migrate][patch][2701333] = https://www.drupal.org/files/issues/reference_fields_should-2701333-3.patch
projects[commerce_discount][version] = 1.0-alpha7
projects[commerce_checkout_progress][version] = 1.4
projects[commerce_extra_price_formatters][version] = 1.x-dev
......
Feature: Add geek out item to cart
In order to buy something to geek out with
As any user
I should be able to add a 32GB usb key to my cart
Scenario: View the geek out options text and links on the page
Given I am on the homepage
When I follow "To geek out"
Then I should see the heading "USB Keys"
And I should see the link "Commerce Guys USB Key"
Scenario: View usb key product information
When I go to "/storage-devices/commerce-guys-usb-key"
Then I should see the following <texts>
| texts |
| Commerce Guys USB Key |
| Bits & Bots |
| $11.99 |
| Product Description |
| SKU: USB-BLU-08 |
@javascript
Scenario: Add a 32gb usb key to cart
When I go to "/storage-devices/commerce-guys-usb-key"
When I select "16GB" from "Capacity"
And I wait for AJAX to finish
Then I should see "$17.99"
When I select "32GB" from "Capacity"
And I wait for AJAX to finish
Then I should see "$29.99"
And I press "Add to cart"
Then I should see "ITEM SUCCESSFULLY ADDED TO YOUR CART"
When I am on "/cart"
Then I should see the following <texts>
| texts |
| SKU: USB-BLU-32 |
| Capacity: |
| 32GB |
| $29.99 |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment