|
1848 | 1848 | <test name="ProductFromDifferentWebsiteInsideBlockShowsOnStage">
|
1849 | 1849 | <annotations>
|
1850 | 1850 | <features value="PageBuilder"/>
|
1851 |
| - <stories value="Products"/> |
1852 |
| - <title value="Product from Different Website Shows on Stage"/> |
| 1851 | + <stories value="Block"/> |
| 1852 | + <title value="Product from Different Website Inside Block Shows on Stage"/> |
1853 | 1853 | <description value="As a product manager I want to be able to see products from all store views rendered inside blocks on stage in admin so that I don't get worried that conditions are being applied incorrectly"/>
|
1854 | 1854 | <severity value="CRITICAL"/>
|
1855 | 1855 | <useCaseId value="MC-5373"/>
|
|
1872 | 1872 | <argument name="StoreGroup" value="customStoreGroup"/>
|
1873 | 1873 | <argument name="customStore" value="customStore"/>
|
1874 | 1874 | </actionGroup>
|
| 1875 | + <createData entity="SimpleProduct" stepKey="createProduct"> |
| 1876 | + <requiredEntity createDataKey="createCategory"/> |
| 1877 | + </createData> |
1875 | 1878 | </before>
|
1876 | 1879 | <after>
|
1877 | 1880 | <actionGroup ref="DeleteCustomWebsiteActionGroup" stepKey="deleteWebsite">
|
1878 | 1881 | <argument name="websiteName" value="$createCustomWebsite.website[name]$"/>
|
1879 | 1882 | </actionGroup>
|
1880 | 1883 | <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" />
|
1881 |
| - <actionGroup ref="DeleteCategory" stepKey="deleteCategory"> |
1882 |
| - <argument name="categoryEntity" value="SimpleSubCategory"/> |
1883 |
| - </actionGroup> |
1884 |
| - <actionGroup ref="deleteProductBySku" stepKey="deleteProduct"> |
1885 |
| - <argument name="sku" value="{{SimpleProduct.sku}}"/> |
1886 |
| - </actionGroup> |
| 1884 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 1885 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
1887 | 1886 | <actionGroup ref="logout" stepKey="logoutOfAdmin"/>
|
1888 | 1887 | </after>
|
1889 |
| - <!-- Create product and assign to store view --> |
1890 |
| - <comment userInput="Create product and assign to store view" stepKey="commentCreateProductAndAssignToStoreView"/> |
1891 |
| - <actionGroup ref="FillAdminSimpleProductForm" stepKey="createProduct"> |
1892 |
| - <argument name="category" value="SimpleSubCategory"/> |
1893 |
| - <argument name="simpleProduct" value="SimpleProduct"/> |
| 1888 | + <!-- Create product and assign to created store view --> |
| 1889 | + <comment userInput="Assign product to created store view" stepKey="commentAssignProductToCreatedStoreView"/> |
| 1890 | + <actionGroup ref="navigateToCreatedProductEditPage" stepKey="navigateToCreatedProductEditPage"> |
| 1891 | + <argument name="product" value="$$createProduct$$"/> |
1894 | 1892 | </actionGroup>
|
1895 | 1893 | <actionGroup ref="SelectProductInWebsitesActionGroup" stepKey="setWebsite2">
|
1896 | 1894 | <argument name="website" value="$createCustomWebsite.website[name]$"/>
|
1897 | 1895 | </actionGroup>
|
1898 | 1896 | <uncheckOption selector="{{ProductInWebsitesSection.website('Main Website')}}" stepKey="uncheckMainWebsite"/>
|
1899 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/> |
1900 |
| - <waitForPageLoad stepKey="waitForProductToSave"/> |
1901 |
| - <see userInput="You saved the product." stepKey="seeSuccessfulProductSaveMessage"/> |
| 1897 | + <actionGroup ref="saveProductForm" stepKey="saveProductForm2" /> |
1902 | 1898 | <!-- Create block with product inside -->
|
1903 | 1899 | <comment userInput="Create block with product inside" stepKey="commentCreateBlockWithProductInside"/>
|
1904 | 1900 | <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage">
|
|
1976 | 1972 | <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
|
1977 | 1973 | <argument name="contentType" value="PageBuilderProductsContentType"/>
|
1978 | 1974 | </actionGroup>
|
1979 |
| - <grabMultiple selector="{{ProductsOnStorefront.product('1')}}" stepKey="grabStorefrontProducts"/> |
1980 |
| - <assertCount stepKey="assertStorefrontCountIs0"> |
1981 |
| - <expectedResult type="int">0</expectedResult> |
1982 |
| - <actualResult type="variable">$grabStorefrontProducts</actualResult> |
1983 |
| - </assertCount> |
| 1975 | + <seeNumberOfElements selector="{{ProductsOnStorefront.product('1')}}" userInput="0" stepKey="seeZeroProducts" /> |
1984 | 1976 | <!-- Validate Storefront with correct store view -->
|
1985 | 1977 | <comment userInput="Validate Storefront with correct Store View shows product" stepKey="commentValidateStorefrontWithCorrectStoreView"/>
|
1986 | 1978 | <actionGroup ref="navigateToStoreFrontWithStoreView" stepKey="navigateToStoreFrontWithStoreView">
|
1987 | 1979 | <argument name="contentType" value="PageBuilderProductsContentType"/>
|
1988 | 1980 | <argument name="storeView" value="customStore"/>
|
1989 | 1981 | </actionGroup>
|
1990 |
| - <grabMultiple selector="{{ProductsOnStorefront.product('1')}}" stepKey="grabStorefrontProducts2"/> |
1991 |
| - <assertCount stepKey="assertStorefrontCountIs1"> |
1992 |
| - <expectedResult type="int">1</expectedResult> |
1993 |
| - <actualResult type="variable">$grabStorefrontProducts2</actualResult> |
1994 |
| - </assertCount> |
| 1982 | + <seeNumberOfElements selector="{{ProductsOnStorefront.product('1')}}" userInput="1" stepKey="seeOneProduct" /> |
1995 | 1983 | </test>
|
1996 | 1984 | </tests>
|
0 commit comments