Merge pull request #19851 from woocommerce/fix-e2e-tests-before3.4

Fix the US currency name and attribute check for creating variable product
This commit is contained in:
Mike Jolley 2018-04-25 12:03:54 +01:00 committed by GitHub
commit a04c54a896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ test.describe( 'Checkout Page', function() {
baseLocation: [ 'United States', 'United States (US) — California' ],
sellingLocation: 'Sell to all countries',
enableTaxes: true,
currency: [ 'United States', 'United States dollar ($)' ],
currency: [ 'United States', 'United States (US) dollar ($)' ],
} );
// Make sure payment method is set in setting.

View File

@ -68,14 +68,14 @@ test.describe( 'Add New Product Page', function() {
attr1.toggle();
const attr2 = panelAttributes.add();
assert.eventually.ok( attr1.displayed() );
assert.eventually.ok( attr2.displayed() );
attr2.setName( 'attr #2' );
attr2.checkVisibleOnTheProductPage();
attr2.checkUsedForVariations();
attr2.setValue( 'val1 | val2' );
const attr3 = panelAttributes.add();
assert.eventually.ok( attr1.displayed() );
assert.eventually.ok( attr3.displayed() );
attr3.setName( 'attr #3' );
attr3.checkVisibleOnTheProductPage();
attr3.checkUsedForVariations();