Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 2a4d59d

Browse files
author
Joan He
committed
Merge remote-tracking branch 'trigger/MC-5538' into BugFixPR
2 parents a1b0d8d + dd07229 commit 2a4d59d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/ActionGroup/StorefrontCatalogSearchActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
</arguments>
1616
<submitForm selector="#search_mini_form" parameterArray="['q' => '{{phrase}}']" stepKey="fillQuickSearch" />
1717
<seeInCurrentUrl url="{{StorefrontCatalogSearchPage.url}}" stepKey="checkUrl"/>
18+
<dontSeeInCurrentUrl url="form_key=" stepKey="checkUrlFormKey"/>
1819
<seeInTitle userInput="Search results for: '{{phrase}}'" stepKey="assertQuickSearchTitle"/>
1920
<see userInput="Search results for: '{{phrase}}'" selector="{{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey="assertQuickSearchName"/>
2021
</actionGroup>

lib/web/mage/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ define([
2121
form = $(e.target),
2222
formKey = $('input[name="form_key"]').val();
2323

24-
if (formKey && !form.find('input[name="form_key"]').length) {
24+
if (formKey && !form.find('input[name="form_key"]').length && form[0].method !== 'get') {
2525
formKeyElement = document.createElement('input');
2626
formKeyElement.setAttribute('type', 'hidden');
2727
formKeyElement.setAttribute('name', 'form_key');

0 commit comments

Comments
 (0)