File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
app/code/Magento/Cms/Test/Mftf/Test Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 64
64
<see userInput =" Hello CMS Page!" stepKey =" seeContent" />
65
65
<!-- see widget on Storefront-->
66
66
<see userInput =" $$createPreReqCategory.name$$" stepKey =" seeCategoryLink" />
67
+ <magentoCLI command =" config:set catalog/seo/generate_rewrites_on_save 0" stepKey =" disableGenerateUrlRewrite" />
68
+ <amOnPage url =" {{_defaultCmsPage.identifier}}" stepKey =" amOnPageTestPage2" />
69
+ <waitForPageLoad stepKey =" wait6" />
70
+ <see userInput =" Hello CMS Page!" stepKey =" seeContent2" />
71
+ <!-- see widget on Storefront-->
72
+ <grabAttributeFrom selector =" .widget a" userInput =" href" stepKey =" dataHref" />
73
+ <assertRegExp expected =" |$$createPreReqCategory.name$$.html|i"
74
+ expectedType =" string" actual =" $dataHref" actualType =" variable"
75
+ stepKey =" seeProductLinkInCategory" />
67
76
<after >
68
77
<deleteData createDataKey =" createPreReqCategory" stepKey =" deletePreReqCatalog" />
69
78
<actionGroup ref =" DisabledWYSIWYG" stepKey =" disableWYSIWYG" />
79
+ <magentoCLI command =" config:set catalog/seo/generate_rewrites_on_save 1" stepKey =" enableGenerateUrlRewrite" />
70
80
<actionGroup ref =" logout" stepKey =" logout" />
71
81
</after >
72
82
</test >
Original file line number Diff line number Diff line change 71
71
<!-- see widget on Storefront-->
72
72
<see userInput =" Hello CMS Page!" stepKey =" seeContent" />
73
73
<see userInput =" $$createPreReqProduct.name$$" stepKey =" seeProductLink" />
74
+ <magentoCLI command =" config:set catalog/seo/generate_rewrites_on_save 0" stepKey =" disableGenerateUrlRewrite" />
75
+ <amOnPage url =" {{_defaultCmsPage.identifier}}" stepKey =" amOnPageTestPage2" />
76
+ <waitForPageLoad stepKey =" wait8" />
77
+ <!-- see widget on Storefront-->
78
+ <grabAttributeFrom selector =" .widget a" userInput =" href" stepKey =" dataHref" />
79
+ <assertRegExp expected =" |$$createPreReqCategory.name$$/$$createPreReqProduct.name$$.html|i"
80
+ expectedType =" string" actual =" $dataHref" actualType =" variable"
81
+ stepKey =" seeProductLinkInCategory" />
74
82
<after >
75
83
<deleteData createDataKey =" createPreReqCategory" stepKey =" deletePreReqCatalog" />
76
84
<deleteData createDataKey =" createPreReqProduct" stepKey =" deletePreReqProduct" />
77
85
<actionGroup ref =" DisabledWYSIWYG" stepKey =" disableWYSIWYG" />
86
+ <magentoCLI command =" config:set catalog/seo/generate_rewrites_on_save 1" stepKey =" enableGenerateUrlRewrite" />
78
87
<actionGroup ref =" logout" stepKey =" logout" />
79
88
</after >
80
89
</test >
You can’t perform that action at this time.
0 commit comments