E2E fixes after countryArea changes
This commit is contained in:
parent
0d7af543ac
commit
46a9c527a7
3 changed files with 9 additions and 4 deletions
|
@ -8,6 +8,6 @@ export const ADDRESS_SELECTORS = {
|
|||
city: '[name="city"]',
|
||||
postalCode: '[name="postalCode"]',
|
||||
country: '[data-test-id="address-edit-country-select-field"]',
|
||||
countryArea: '[name="countryArea"]',
|
||||
saveButton: '[data-test-id="order-address-edit-dialog-confirm-button"]'
|
||||
countryArea: '[data-test-id="address-edit-country-area-field"]',
|
||||
saveButton: '[data-test-id="order-address-edit-dialog-confirm-button"]',
|
||||
};
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
"postalCode": "70957",
|
||||
"country": "US",
|
||||
"countryArea": "LA",
|
||||
"countryAreaFullName": "Louisiana",
|
||||
"phone": "+12025550189",
|
||||
"currency": "USD",
|
||||
"countryFullName": "United States of America"
|
||||
|
@ -37,6 +38,7 @@
|
|||
"postalCode": "37745",
|
||||
"country": "US",
|
||||
"countryArea": "TN",
|
||||
"countryAreaFullName": "Tennessee",
|
||||
"phone": "+12025550169",
|
||||
"currency": "USD",
|
||||
"countryFullName": "United States of America"
|
||||
|
|
|
@ -14,8 +14,11 @@ Cypress.Commands.add("fillUpBasicAddress", address => {
|
|||
.clearAndType(address.city)
|
||||
.get(ADDRESS_SELECTORS.postalCode)
|
||||
.clearAndType(address.postalCode)
|
||||
.fillAutocompleteSelect(ADDRESS_SELECTORS.country, address.countryFullName);
|
||||
cy.get(ADDRESS_SELECTORS.countryArea).clearAndType(address.countryArea);
|
||||
.fillAutocompleteSelect(ADDRESS_SELECTORS.country, address.countryFullName)
|
||||
.fillAutocompleteSelect(
|
||||
ADDRESS_SELECTORS.countryArea,
|
||||
address.countryAreaFullName,
|
||||
);
|
||||
});
|
||||
|
||||
Cypress.Commands.add("fillUpAddressForm", address => {
|
||||
|
|
Loading…
Reference in a new issue