Skip to content

Commit 126f778

Browse files
committed
B2B-1645: Add MFTF test for MC-38325 & MC-38947
- Addressing CR feedback
1 parent d7545c6 commit 126f778

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/code/Magento/Downloadable/Test/Mftf/ActionGroup/AdminAssertDownloadableLinkInformationActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAssertDownloadableLinkInformationActionGroup">
1212
<annotations>
13-
<description>Verifies the data in for a downloadable link on the Edit Product page in admin.</description>
13+
<description>Verifies the data for a downloadable link on the Edit Product page in admin.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="title" defaultValue="{{downloadableLink.title}}" type="string"/>
@@ -23,8 +23,8 @@
2323
<argument name="maxDownloads" defaultValue="0" type="string"/>
2424
<argument name="index" defaultValue="0" type="string"/>
2525
</arguments>
26-
<conditionalClick selector="{{AdminProductDownloadableSection.sectionHeader}}" dependentSelector="{{AdminProductDownloadableSection.sectionLinkGrid}}" visible="false" stepKey="expandDownloadableSection"/>
27-
<waitForElementVisible selector="{{AdminProductDownloadableSection.sectionLinkGrid}}" stepKey="waitForDownloadableLinks"/>
26+
<conditionalClick selector="{{AdminProductDownloadableSection.sectionHeader}}" dependentSelector="{{AdminProductDownloadableSection.addSampleTitleInput(index)}}" visible="false" stepKey="expandDownloadableSection"/>
27+
<waitForElementVisible selector="{{AdminProductDownloadableSection.addSampleTitleInput(index)}}" stepKey="waitForDownloadableLinks"/>
2828
<seeInField userInput="{{title}}" selector="{{AdminProductDownloadableSection.addLinkTitleInput(index)}}" stepKey="seeTitle"/>
2929
<seeInField userInput="{{price}}" selector="{{AdminProductDownloadableSection.addLinkPriceInput(index)}}" stepKey="seePrice"/>
3030
<seeInField userInput="{{fileType}}" selector="{{AdminProductDownloadableSection.addLinkFileTypeSelector(index)}}" stepKey="seeFileType"/>

app/code/Magento/Downloadable/Test/Mftf/ActionGroup/AdminAssertDownloadableSampleLinkInformationActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminAssertDownloadableSampleLinkInformationActionGroup">
1212
<annotations>
13-
<description>Verifies the data in for a downloadable sample link on the Edit Product page in admin.</description>
13+
<description>Verifies the data for a downloadable sample link on the Edit Product page in admin.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="title" defaultValue="{{downloadableSampleFile.title}}" type="string"/>
1717
<argument name="fileType" defaultValue="{{downloadableSampleFile.file_type}}" type="string"/>
1818
<argument name="fileNameOrUrl" defaultValue="{{downloadableSampleFile.file}}" type="string"/>
1919
<argument name="index" defaultValue="0" type="string"/>
2020
</arguments>
21-
<conditionalClick selector="{{AdminProductDownloadableSection.sectionHeader}}" dependentSelector="{{AdminProductDownloadableSection.sectionLinkGrid}}" visible="false" stepKey="expandDownloadableSection"/>
22-
<waitForElementVisible selector="{{AdminProductDownloadableSection.sectionLinkGrid}}" stepKey="waitForDownloadableLinks"/>
21+
<conditionalClick selector="{{AdminProductDownloadableSection.sectionHeader}}" dependentSelector="{{AdminProductDownloadableSection.addSampleTitleInput(index)}}" visible="false" stepKey="expandDownloadableSection"/>
22+
<waitForElementVisible selector="{{AdminProductDownloadableSection.addSampleTitleInput(index)}}" stepKey="waitForDownloadableLinks"/>
2323
<seeInField userInput="{{title}}" selector="{{AdminProductDownloadableSection.addSampleTitleInput(index)}}" stepKey="seeTitle"/>
2424
<seeInField userInput="{{fileType}}" selector="{{AdminProductDownloadableSection.addSampleFileTypeSelector(index)}}" stepKey="seeFileType"/>
2525
<executeJS function="

app/code/Magento/Downloadable/Test/Mftf/ActionGroup/StorefrontNavigateToCustomerDownloadableProductsPageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
<description>Navigates to the storefront My Downloadable Products page. Must be signed in as a customer.</description>
1414
</annotations>
1515
<amOnPage url="{{StorefrontCustomerDownloadableProductsPage.url}}" stepKey="navigateToImportPage"/>
16-
<see userInput="My Downloadable Products" selector="{{StorefrontCustomerAccountMainSection.pageTitle}}" stepKey="seeTitle"/>
16+
<waitForText userInput="My Downloadable Products" selector="{{StorefrontCustomerAccountMainSection.pageTitle}}" stepKey="waitForPageTitle"/>
1717
</actionGroup>
1818
</actionGroups>

0 commit comments

Comments
 (0)