Skip to content

Commit cb1e6b7

Browse files
committed
PB-61: Left Panel Search Bar Returning Results
- Add SearchSpecialCharactersInPanel
1 parent b7ddcb6 commit cb1e6b7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderPanelTest.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,32 @@
158158
<fillField selector="{{PageBuilderPanel.searchPanel}}" userInput="abcdef" stepKey="fillSearch"/>
159159
<see userInput="Nothing found" selector="{{PageBuilderPanel.nothingFound}}" stepKey="validateNothingFound"/>
160160
</test>
161+
<test name="SearchSpecialCharactersInPanel">
162+
<annotations>
163+
<features value="PageBuilder"/>
164+
<stories value="Panel"/>
165+
<title value="Search using special characters in PageBuilder Panel"/>
166+
<description value="When searching using regular expression special characters, assert no JS errors are produced."/>
167+
<severity value="CRITICAL"/>
168+
<useCaseId value="PB-61"/>
169+
<testCaseId value="MC-21478"/>
170+
<group value="pagebuilder"/>
171+
<group value="pagebuilder-panel"/>
172+
</annotations>
173+
<before>
174+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
175+
<actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
176+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
177+
</before>
178+
<after>
179+
<actionGroup ref="logout" stepKey="logout"/>
180+
</after>
181+
<fillField selector="{{PageBuilderPanel.searchPanel}}" userInput="$" stepKey="fillSearchWithInvalidInput"/>
182+
<see userInput="Nothing found" selector="{{PageBuilderPanel.nothingFound}}" stepKey="validateNothingFound"/>
183+
<dontSeeJsError stepKey="dontSeeJsError"/>
184+
<fillField selector="{{PageBuilderPanel.searchPanel}}" userInput="Code" stepKey="fillCode"/>
185+
<see userInput="HTML Code" selector="{{PageBuilderPanel.searchResults}}" stepKey="validateCodeButtonShowsUp"/>
186+
</test>
161187
<test name="ClearSearchInPanel">
162188
<annotations>
163189
<features value="PageBuilder"/>

0 commit comments

Comments
 (0)