Skip to content

Commit afd3637

Browse files
committed
MC-7811: Cannot upload incorrect file
1 parent 2a3c943 commit afd3637

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontVerifyCannotLoadFileWithIncorrectNameThroughCustomOptionsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
<!-- Upload file -->
5555
<actionGroup ref="StorefrontAttachOptionFileActionGroup" stepKey="selectAndAttachFile">
56-
<argument name="optionTitle" value="ProductOptionFile"/>
56+
<argument name="optionTitle" value="{{ProductOptionFile.title}}"/>
5757
<argument name="file" value="ProductFileOptionWithScriptTag.file"/>
5858
</actionGroup>
5959

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontAttachOptionFileActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<description>Attaches the provided File to the provided Product Option on a Storefront Product page.</description>
1414
</annotations>
1515
<arguments>
16-
<argument name="optionTitle" defaultValue="ProductOptionFile"/>
16+
<argument name="optionTitle" type="string"/>
1717
<argument name="file" defaultValue="MagentoLogo.file" />
1818
</arguments>
1919

20-
<attachFile selector="{{StorefrontProductInfoMainSection.addLinkFileUploadFile(optionTitle.title)}}" userInput="{{file}}" stepKey="attachFile"/>
20+
<attachFile selector="{{StorefrontProductInfoMainSection.addLinkFileUploadFile(optionTitle)}}" userInput="{{file}}" stepKey="attachFile"/>
2121
</actionGroup>
2222
</actionGroups>

0 commit comments

Comments
 (0)