This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 2 files changed +2
-1
lines changed
app/code/Magento/CatalogSearch/Test/Mftf/ActionGroup 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
</arguments >
16
16
<submitForm selector =" #search_mini_form" parameterArray =" ['q' => '{{phrase}}']" stepKey =" fillQuickSearch" />
17
17
<seeInCurrentUrl url =" {{StorefrontCatalogSearchPage.url}}" stepKey =" checkUrl" />
18
+ <dontSeeInCurrentUrl url =" form_key=" stepKey =" checkUrlFormKey" />
18
19
<seeInTitle userInput =" Search results for: '{{phrase}}'" stepKey =" assertQuickSearchTitle" />
19
20
<see userInput =" Search results for: '{{phrase}}'" selector =" {{StorefrontCatalogSearchMainSection.SearchTitle}}" stepKey =" assertQuickSearchName" />
20
21
</actionGroup >
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ define([
21
21
form = $ ( e . target ) ,
22
22
formKey = $ ( 'input[name="form_key"]' ) . val ( ) ;
23
23
24
- if ( formKey && ! form . find ( 'input[name="form_key"]' ) . length ) {
24
+ if ( formKey && ! form . find ( 'input[name="form_key"]' ) . length && form [ 0 ] . method !== 'get' ) {
25
25
formKeyElement = document . createElement ( 'input' ) ;
26
26
formKeyElement . setAttribute ( 'type' , 'hidden' ) ;
27
27
formKeyElement . setAttribute ( 'name' , 'form_key' ) ;
You can’t perform that action at this time.
0 commit comments