Skip to content

Commit

Permalink
Merge pull request #3474 from magento-borg/BugFixPR
Browse files Browse the repository at this point in the history
[2.3-develop] Bug Fixes
  • Loading branch information
joanhe authored Nov 26, 2018
2 parents 7755eef + 62efbf6 commit 7d6b0d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</arguments>
<submitForm selector="#search_mini_form" parameterArray="['q' => '{{phrase}}']" stepKey="fillQuickSearch" />
<seeInCurrentUrl url="{{StorefrontCatalogSearchPage.url}}" stepKey="checkUrl"/>
<dontSeeInCurrentUrl url="form_key=" stepKey="checkUrlFormKey"/>
<seeInTitle userInput="Search results for: '{{phrase}}'" stepKey="assertQuickSearchTitle"/>
<see userInput="Search results for: '{{phrase}}'" selector="{{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey="assertQuickSearchName"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<severity value="CRITICAL"/>
<testCaseId value="MC-295"/>
<group value="Tax"/>
<skip>
<issueId value="MAGETWO-96194"/>
</skip>
</annotations>
<before>
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
Expand Down Expand Up @@ -98,6 +95,7 @@
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/>

<waitForElementVisible stepKey="waitForOverviewVisible" selector="{{CheckoutPaymentSection.tax}}"/>
<waitForText userInput="$5.00" selector="{{CheckoutPaymentSection.orderSummaryShippingTotal}}" time="30" stepKey="waitForCorrectShippingAmount"/>
<see stepKey="seeTax" selector="{{CheckoutPaymentSection.tax}}" userInput="$10.30"/>
<click stepKey="expandTax" selector="{{CheckoutPaymentSection.tax}}"/>
<see stepKey="seeTaxPercent" selector="{{CheckoutPaymentSection.taxPercentage}}" userInput="({{SimpleTaxNY.rate}}%)"/>
Expand Down
2 changes: 1 addition & 1 deletion lib/web/mage/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ define([
form = $(e.target),
formKey = $('input[name="form_key"]').val();

if (formKey && !form.find('input[name="form_key"]').length) {
if (formKey && !form.find('input[name="form_key"]').length && form[0].method !== 'get') {
formKeyElement = document.createElement('input');
formKeyElement.setAttribute('type', 'hidden');
formKeyElement.setAttribute('name', 'form_key');
Expand Down

0 comments on commit 7d6b0d7

Please sign in to comment.