|
12 | 12 | <annotations>
|
13 | 13 | <group value="Downloadable"/>
|
14 | 14 | </annotations>
|
| 15 | + |
15 | 16 | <!-- Create downloadable product -->
|
16 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="adminProductIndexPageAdd" after="anchor0"/> |
17 |
| - <waitForPageLoad stepKey="waitForProductIndexPageLoad" after="adminProductIndexPageAdd"/> |
18 |
| - <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage" after="adminProductIndexPageAdd"> |
| 17 | + <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="goToAdminProductIndexPage" after="anchor0"/> |
| 18 | + <waitForPageLoad stepKey="waitForProductIndexPageLoad" after="goToAdminProductIndexPage"/> |
| 19 | + <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage" after="waitForProductIndexPageLoad"> |
19 | 20 | <argument name="product" value="DownloadableProduct"/>
|
20 | 21 | </actionGroup>
|
21 | 22 | <actionGroup ref="fillMainProductFormNoWeight" stepKey="fillMainProductForm" after="goToCreateProductPage">
|
22 | 23 | <argument name="product" value="DownloadableProduct"/>
|
23 | 24 | </actionGroup>
|
24 | 25 |
|
25 | 26 | <!-- Add downloadable links -->
|
26 |
| - <click selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="openDownloadableSection" after="anchor2"/> |
27 |
| - <checkOption selector="{{AdminProductDownloadableSection.isDownloadableProduct}}" stepKey="checkIsDownloadable" after="openDownloadableSection"/> |
28 |
| - <fillField userInput="{{downloadableData.link_title}}" selector="{{AdminProductDownloadableSection.linksTitleInput}}" stepKey="fillDownloadableLinkTitle" after="checkIsDownloadable"/> |
29 |
| - <checkOption selector="{{AdminProductDownloadableSection.isLinksPurchasedSeparately}}" stepKey="checkLinksPurchasedSeparately" after="fillDownloadableLinkTitle"/> |
30 |
| - <fillField userInput="{{downloadableData.sample_title}}" selector="{{AdminProductDownloadableSection.samplesTitleInput}}" stepKey="fillDownloadableSampleTitle" after="checkLinksPurchasedSeparately"/> |
31 |
| - <actionGroup ref="addDownloadableProductLinkWithMaxDownloads" stepKey="addDownloadableLinkWithMaxDownloads" after="fillDownloadableSampleTitle"> |
| 27 | + <!-- Start specific product steps, generic stepKey so that it can be used for test extensions --> |
| 28 | + <click selector="{{AdminProductDownloadableSection.sectionHeader}}" stepKey="step0" after="anchor2"/> |
| 29 | + <checkOption selector="{{AdminProductDownloadableSection.isDownloadableProduct}}" stepKey="step1" after="step0"/> |
| 30 | + <fillField userInput="{{downloadableData.link_title}}" selector="{{AdminProductDownloadableSection.linksTitleInput}}" stepKey="step2" after="step1"/> |
| 31 | + <checkOption selector="{{AdminProductDownloadableSection.isLinksPurchasedSeparately}}" stepKey="step3" after="step2"/> |
| 32 | + <fillField userInput="{{downloadableData.sample_title}}" selector="{{AdminProductDownloadableSection.samplesTitleInput}}" stepKey="step4" after="step3"/> |
| 33 | + <actionGroup ref="addDownloadableProductLinkWithMaxDownloads" stepKey="step5" after="step4"> |
32 | 34 | <argument name="link" value="downloadableLinkWithMaxDownloads"/>
|
33 | 35 | </actionGroup>
|
34 |
| - <actionGroup ref="addDownloadableProductLink" stepKey="addDownloadableLink" after="addDownloadableLinkWithMaxDownloads"> |
| 36 | + <actionGroup ref="addDownloadableProductLink" stepKey="step6" after="step5"> |
35 | 37 | <argument name="link" value="downloadableLink"/>
|
36 | 38 | </actionGroup>
|
37 | 39 |
|
38 | 40 | <!--Save Product-->
|
39 |
| - <actionGroup ref="saveProductForm" stepKey="saveDownloadableProduct" after="anchor3"/> |
| 41 | + <actionGroup ref="saveProductForm" stepKey="saveProduct" after="anchor3"/> |
40 | 42 |
|
41 | 43 | <!--Save Product-->
|
42 |
| - <actionGroup ref="saveProductForm" stepKey="saveProductFormAfterRemove" after="anchor9"/> |
| 44 | + <actionGroup ref="saveProductForm" stepKey="saveProductAfterRemove" after="anchor9"/> |
43 | 45 |
|
44 | 46 | <!-- Assert product in storefront product page -->
|
45 |
| - <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPageAfterRemove" after="anchor11"> |
| 47 | + <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage" after="anchor11"> |
46 | 48 | <argument name="product" value="DownloadableProduct"/>
|
47 | 49 | </actionGroup>
|
48 | 50 | </test>
|
|
0 commit comments