File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Directory/Test/Mftf/Section Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
<element name =" clearFilters" type =" button" selector =" .admin__data-grid-header button[data-action='grid-filter-reset']" timeout =" 30" />
17
17
<element name =" viewDropdown" type =" button" selector =" .admin__data-grid-action-bookmarks button.admin__action-dropdown" />
18
18
<element name =" countryOptions" type =" button" selector =" .admin__data-grid-filters select[name=billing_country_id] option" />
19
+ <element name =" countryOptionsWithoutEmptyOption" type =" button" selector =" .admin__data-grid-filters select[name=billing_country_id] option:not([value=''])" />
19
20
</section >
20
21
</sections >
Original file line number Diff line number Diff line change 55
55
56
56
<!-- Check that all countries are allowed initially and get amount-->
57
57
<amOnPage url =" {{AdminConfigurationGeneralSectionPage.url('#general_country-link')}}" stepKey =" goToCountryConfigurationSectionPage" />
58
- <executeJS function =" return document.querySelectorAll('{{AdminConfigurationGeneralCountryOptionsSection.allowedCountries}} option ').length" stepKey =" countriesAmount" />
58
+ <executeJS function =" return document.querySelectorAll('{{AdminConfigurationGeneralCountryOptionsSection.allowedCountriesOptions}} ').length" stepKey =" countriesAmount" />
59
59
60
60
<!-- Switch to first website, allow only Canada and set Canada as default country -->
61
61
<actionGroup ref =" AdminSwitchWebsiteActionGroup" stepKey =" adminSwitchWebsite" >
82
82
<!-- Go to Customers grid and check that filter countries amount is the same as initial allowed countries amount-->
83
83
<amOnPage url =" {{AdminCustomerPage.url}}" stepKey =" goToCustomersGrid" />
84
84
<click selector =" {{AdminDataGridHeaderSection.filters}}" stepKey =" openFiltersSectionOnCustomersGrid" />
85
- <executeJS function =" var len = document.querySelectorAll('{{AdminCustomerFiltersSection.countryOptions}}').length; return len-1;" stepKey =" actualCountriesAmount" />
86
- <assertEquals expected =' ($countriesAmount)' actual =" ($actualCountriesAmount)" stepKey =" assertCountryAmounts" />
85
+ <seeNumberOfElements userInput =" $countriesAmount" selector =" {{AdminCustomerFiltersSection.countryOptionsWithoutEmptyOption}}" stepKey =" assertCountryAmounts" />
87
86
</test >
88
87
</tests >
Original file line number Diff line number Diff line change 17
17
<element name =" countryOptions" type =" button" selector =" #general_country-head" />
18
18
<element name =" countryOptionsOpen" type =" button" selector =" #general_country-head.open" />
19
19
<element name =" topDestinations" type =" select" selector =" #general_country_destinations" />
20
+ <element name =" allowedCountriesOptions" selector =" #general_country_allow option" />
20
21
</section >
21
22
</sections >
You can’t perform that action at this time.
0 commit comments