tests for variants
This commit is contained in:
parent
00e28061bd
commit
ad3c1de234
6 changed files with 14 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
export const VARIANTS_SELECTORS = {
|
||||
attributeCheckbox: "[name*='value:']",
|
||||
valueContainer: "[class*='valueContainer']",
|
||||
valueContainer: "[data-test-id='value-container']",
|
||||
nextButton: "[class*='MuiButton-containedPrimary']",
|
||||
priceInput: "[name*='channel-price']",
|
||||
costPriceInput: "[name*='channel-costPrice']",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import faker from "faker";
|
||||
|
||||
import ProductSteps from "../../../steps/productSteps";
|
||||
import ProductSteps from "../../../steps/products/productSteps";
|
||||
import { productDetailsUrl } from "../../../url/urlList";
|
||||
import ChannelsUtils from "../../../utils/channelsUtils";
|
||||
import ProductsUtils from "../../../utils/productsUtils";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import faker from "faker";
|
||||
|
||||
import ProductSteps from "../../../steps/productSteps";
|
||||
import ProductSteps from "../../../steps/products/productSteps";
|
||||
import { productDetailsUrl } from "../../../url/urlList";
|
||||
import ChannelsUtils from "../../../utils/channelsUtils";
|
||||
import ProductsUtils from "../../../utils/productsUtils";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import faker from "faker";
|
||||
|
||||
import ProductSteps from "../../../steps/productSteps";
|
||||
import ProductSteps from "../../../steps/products/productSteps";
|
||||
import { productDetailsUrl } from "../../../url/urlList";
|
||||
import ChannelsUtils from "../../../utils/channelsUtils";
|
||||
import ProductsUtils from "../../../utils/productsUtils";
|
||||
|
|
|
@ -39,7 +39,10 @@ const ProductVariantCreatorValues: React.FC<ProductVariantCreatorValuesProps> =
|
|||
<React.Fragment key={attribute.id}>
|
||||
<Card>
|
||||
<CardTitle title={attribute?.name || <Skeleton />} />
|
||||
<CardContent className={classes.valueContainer}>
|
||||
<CardContent
|
||||
className={classes.valueContainer}
|
||||
data-test-id="value-container"
|
||||
>
|
||||
{attribute.values.map(value => (
|
||||
<Debounce
|
||||
debounceFn={() => onValueClick(attribute.id, value.slug)}
|
||||
|
|
|
@ -162968,6 +162968,7 @@ exports[`Storyshots Views / Products / Create multiple variants choose values 1`
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
@ -163169,6 +163170,7 @@ exports[`Storyshots Views / Products / Create multiple variants choose values 1`
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
@ -163364,6 +163366,7 @@ exports[`Storyshots Views / Products / Create multiple variants interactive 1`]
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
@ -163473,6 +163476,7 @@ exports[`Storyshots Views / Products / Create multiple variants interactive 1`]
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
@ -163662,6 +163666,7 @@ exports[`Storyshots Views / Products / Create multiple variants interactive 1`]
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
@ -163771,6 +163776,7 @@ exports[`Storyshots Views / Products / Create multiple variants interactive 1`]
|
|||
/>
|
||||
<div
|
||||
class="MuiCardContent-root-id ProductVariantCreatorValues-valueContainer-id"
|
||||
data-test-id="value-container"
|
||||
>
|
||||
<label
|
||||
class="MuiFormControlLabel-root-id"
|
||||
|
|
Loading…
Reference in a new issue