|
33 | 33 | <arguments>
|
34 | 34 | <argument name="product" defaultValue="_defaultProduct"/>
|
35 | 35 | </arguments>
|
| 36 | + <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
36 | 37 | <fillField selector="{{AdminProductFormSection.productName}}" userInput="{{product.name}}" stepKey="fillProductName"/>
|
37 | 38 | <fillField selector="{{AdminProductFormSection.productSku}}" userInput="{{product.sku}}" stepKey="fillProductSku"/>
|
38 | 39 | <fillField selector="{{AdminProductFormSection.productPrice}}" userInput="{{product.price}}" stepKey="fillProductPrice"/>
|
|
489 | 490 | <conditionalClick selector="{{AdminProductFormSection.enableProductLabel}}" dependentSelector="{{AdminProductFormSection.productStatusValue('1')}}" visible="true" stepKey="disableProduct"/>
|
490 | 491 | <seeElement selector="{{AdminProductFormSection.productStatusValue('2')}}" stepKey="assertThatProductSetToDisabled"/>
|
491 | 492 | </actionGroup>
|
| 493 | + |
| 494 | + <!-- You are on product Edit Page --> |
| 495 | + <!-- Assert checkbox available for website in Product In Websites --> |
| 496 | + <actionGroup name="AssertWebsiteIsAvailableInProductWebsites"> |
| 497 | + <arguments> |
| 498 | + <argument name="website" type="string"/> |
| 499 | + </arguments> |
| 500 | + <scrollTo selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="scrollToProductInWebsitesSection"/> |
| 501 | + <conditionalClick selector="{{ProductInWebsitesSection.sectionHeader}}" dependentSelector="{{ProductInWebsitesSection.sectionHeaderOpened}}" visible="false" stepKey="expandProductWebsitesSection"/> |
| 502 | + <seeElement selector="{{ProductInWebsitesSection.website(website)}}" stepKey="seeCheckboxForWebsite"/> |
| 503 | + </actionGroup> |
| 504 | + |
| 505 | + <!-- You are on product Edit Page --> |
| 506 | + <!-- Assert checkbox not available for website in Product In Websites --> |
| 507 | + <actionGroup name="AssertWebsiteIsNotAvailableInProductWebsites" extends="AssertWebsiteIsAvailableInProductWebsites"> |
| 508 | + <remove keyForRemoval="seeCheckboxForWebsite"/> |
| 509 | + <dontSeeElement selector="{{ProductInWebsitesSection.website(website)}}" after="expandProductWebsitesSection" stepKey="dontSeeCheckboxForWebsite"/> |
| 510 | + </actionGroup> |
| 511 | + |
| 512 | + <!-- You are on product Edit Page --> |
| 513 | + <!-- Assert checkbox Is checked for website in Product In Websites --> |
| 514 | + <actionGroup name="AssertProductIsAssignedToWebsite" extends="AssertWebsiteIsAvailableInProductWebsites"> |
| 515 | + <remove keyForRemoval="seeCheckboxForWebsite"/> |
| 516 | + <seeCheckboxIsChecked selector="{{ProductInWebsitesSection.website(website)}}" after="expandProductWebsitesSection" stepKey="seeCustomWebsiteIsChecked"/> |
| 517 | + </actionGroup> |
492 | 518 | </actionGroups>
|
0 commit comments