Skip to content

Commit 22559d2

Browse files
committed
ACP2E-891: Edit cart line item configurable product failed to Pre-select Production Option in 2.4.4
- Fixed on 1st level CR comments.
1 parent 36ee49c commit 22559d2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Swatches/Test/Mftf/ActionGroup/OpenSwatchMenuAndChooseColorByIndexActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
<!-- I had to use executeJS to perform the click to get around the use of CSS ::before and ::after -->
2020
<executeJS function="jQuery('#swatch-visual-options-panel > table > tbody > tr:nth-child({{index}}) > td.swatches-visual-col.col-default input').click()" stepKey="clickSwatch"/>
21-
<click selector="{{AdminManageSwatchSection.nthChooseColor(index)}}" stepKey="clickChooseColor2"/>
21+
<click selector="{{AdminManageSwatchSection.nthChooseColor(index)}}" stepKey="clickChooseColor"/>
2222
</actionGroup>
2323
</actionGroups>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontSeeConfigurableProductSwatchOptionsToBePreSelectFromCartEditPageTest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- Create category -->
2323
<createData entity="ApiCategory" stepKey="createCategory"/>
2424
<!-- Login as Admin -->
25-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin1"/>
25+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2626
</before>
2727
<after>
2828
<!-- Delete configurable product and all child products -->
@@ -133,8 +133,6 @@
133133
<argument name="rowNumber" value="1"/>
134134
</actionGroup>
135135

136-
<wait time="60" stepKey="waitForDocumentPageLoad"/>
137-
138136
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.selectedSwatchValue('Blue')}}" time="30" stepKey="waitForElementSwatchColorVisible"/>
139137

140138
<see selector="{{StorefrontProductInfoMainSection.selectedSwatchValue('Blue')}}" userInput="Blue" stepKey="seeSwatchColorRemainsSelected"/>

0 commit comments

Comments
 (0)