|
432 | 432 | <createData stepKey="addToDefaultSetSortOrder" entity="AddToDefaultSetSortOrder1">
|
433 | 433 | <requiredEntity createDataKey="createPageBuilderAttribute"/>
|
434 | 434 | </createData>
|
| 435 | + <createData stepKey="createTextAttribute" entity="productAttributeText"/> |
| 436 | + <createData stepKey="addToDefaultSetSortOrder1" entity="AddToDefaultSetSortOrder1"> |
| 437 | + <requiredEntity createDataKey="createTextAttribute"/> |
| 438 | + </createData> |
435 | 439 | <createData stepKey="createPreReqCategory" entity="_defaultCategory"/>
|
436 | 440 | <createData stepKey="relatedSimpleProduct" entity="SimpleProduct2"/>
|
437 | 441 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
440 | 444 | <actionGroup ref="logout" stepKey="logout"/>
|
441 | 445 | <deleteData createDataKey="createPreReqCategory" stepKey="deletePreReqCategory"/>
|
442 | 446 | <deleteData createDataKey="createPageBuilderAttribute" stepKey="deleteAttribute1"/>
|
| 447 | + <deleteData createDataKey="createTextAttribute" stepKey="deleteAttribute2"/> |
443 | 448 | <deleteData createDataKey="relatedSimpleProduct" stepKey="deleteRelatedProduct"/>
|
444 | 449 | </after>
|
445 | 450 | <!-- Update created attribute to enable Page Builder -->
|
|
471 | 476 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen"/>
|
472 | 477 | <!-- Add PageBuilder description -->
|
473 | 478 | <comment userInput="Add PageBuilder description" stepKey="commentAddDescription"/>
|
474 |
| - <click selector="{{AdminProductContentSection.sectionHeader}}" stepKey="openContentSection"/> |
| 479 | + <conditionalClick selector="{{AdminProductContentSection.sectionHeader}}" dependentSelector="{{AdminProductContentSection.sectionHeaderIfNotShowing}}" visible="false" stepKey="openContentSection"/> |
475 | 480 | <waitForPageLoad stepKey="waitForPageLoadContentSection"/>
|
476 |
| - <waitForElementVisible selector="{{PageBuilderCatalog.openPageBuilder}}" stepKey="waitForPageBuilderBtn" /> |
477 |
| - <see userInput="{{EditWithPageBuilderButton.value}}" stepKey="seePageBuilderBtn"/> |
478 |
| - <click selector="{{PageBuilderCatalog.openPageBuilder}}" stepKey="clickOnPageBuilderBtn" /> |
479 |
| - <waitForPageLoad stepKey="waitForPageLoadPageBuilder"/> |
480 |
| - <waitForElementVisible selector="{{PageBuilderPanel.layoutGroup}}" stepKey="waiForPageBuilderVisible" /> |
481 |
| - <waitForElementVisible selector="{{PageBuilderStage.stageWrapperFullScreen}}" stepKey="seePageBuilderFullSizeScreen" /> |
| 481 | + <actionGroup ref="openPageBuilderForAttribute" stepKey="openPageBuilderForDescription"> |
| 482 | + <argument name="attributeCode" value="description"/> |
| 483 | + </actionGroup> |
482 | 484 | <!-- Set background color of row -->
|
483 | 485 | <comment userInput="Set background color of row" stepKey="commentSetRowBackgroundColor"/>
|
484 | 486 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1">
|
|
490 | 492 | <actionGroup ref="saveEditPanelSettingsFullScreen" stepKey="saveEditPanelSettings1"/>
|
491 | 493 | <click selector="{{PageBuilderStage.exitFullScreen}}" stepKey="exitPageBuilderFullScreen1" />
|
492 | 494 | <waitForPageLoad stepKey="waitForPageLoadExitFullScreen1"/>
|
| 495 | + <!-- Update new text attribute, to be shown in More Information --> |
| 496 | + <comment userInput="Update new text attribute, to be shown in More Information" stepKey="commentTextAttribute"/> |
| 497 | + <fillField selector="{{PageBuilderProductAttribute.attributeTextInput($$createTextAttribute.attribute_code$$)}}" userInput="{{PageBuilderTextProperty.value}}" stepKey="fillCustomContentTextarea"/> |
493 | 498 | <!-- Add our related product -->
|
494 | 499 | <comment userInput="Add our related product" stepKey="commentAddRelatedProduct"/>
|
495 | 500 | <actionGroup ref="addRelatedProductBySku" stepKey="addRelatedProduct">
|
|
519 | 524 | <seeElement selector="{{StorefrontProductFullWidth.media}}" stepKey="seeMedia" />
|
520 | 525 | <seeElement selector="{{StorefrontProductFullWidth.description}}" stepKey="seeDescription" />
|
521 | 526 | <seeElement selector="{{StorefrontProductFullWidth.attributes}}" stepKey="seeAttributes" />
|
| 527 | + <seeElement selector="{{StorefrontProductFullWidth.moreInformation}}" stepKey="seeMoreInformation" /> |
522 | 528 | <seeElement selector="{{StorefrontProductFullWidth.reviews}}" stepKey="seeReviews" />
|
523 | 529 | <seeElement selector="{{StorefrontProductFullWidth.related}}" stepKey="seeRelated" />
|
524 | 530 | <seeElement selector="{{StorefrontProductFullWidth.upsell}}" stepKey="seeUpsell" />
|
|
528 | 534 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.media}}')[0].getBoundingClientRect().y" stepKey="mediaPosition"/>
|
529 | 535 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.description}}')[0].getBoundingClientRect().y" stepKey="descriptionPosition"/>
|
530 | 536 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.attributes}}')[0].getBoundingClientRect().y" stepKey="attributesPosition"/>
|
| 537 | + <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.moreInformation}}')[0].getBoundingClientRect().y" stepKey="moreInformationPosition"/> |
531 | 538 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.reviews}}')[0].getBoundingClientRect().y" stepKey="reviewsPosition"/>
|
532 | 539 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.related}}')[0].getBoundingClientRect().y" stepKey="relatedPosition"/>
|
533 | 540 | <executeJS function="return document.querySelectorAll('{{StorefrontProductFullWidth.upsell}}')[0].getBoundingClientRect().y" stepKey="upsellPosition"/>
|
|
543 | 550 | <expectedResult type="variable">descriptionPosition</expectedResult>
|
544 | 551 | <actualResult type="variable">attributesPosition</actualResult>
|
545 | 552 | </assertGreaterThan>
|
546 |
| - <assertGreaterThan stepKey="assertReviewsBelowAttributes"> |
| 553 | + <assertGreaterThan stepKey="assertMoreInformationBelowAttributes"> |
547 | 554 | <expectedResult type="variable">attributesPosition</expectedResult>
|
| 555 | + <actualResult type="variable">moreInformationPosition</actualResult> |
| 556 | + </assertGreaterThan> |
| 557 | + <assertGreaterThan stepKey="assertReviewsBelowMoreInformation"> |
| 558 | + <expectedResult type="variable">moreInformationPosition</expectedResult> |
548 | 559 | <actualResult type="variable">reviewsPosition</actualResult>
|
549 | 560 | </assertGreaterThan>
|
550 | 561 | <assertGreaterThan stepKey="assertRelatedBelowReviews">
|
|
0 commit comments