|
3 | 3 | */ |
4 | 4 | import { products as baseProducts } from '@inpsyde/playwright-utils/build'; |
5 | 5 |
|
| 6 | +const variationNotSelected100: WooCommerce.CreateProduct = { |
| 7 | + name: 'Variable T-Shirt', |
| 8 | + slug: 'variable-t-shirt', |
| 9 | + type: 'variable', |
| 10 | + regular_price: '100.00', |
| 11 | + description: |
| 12 | + 'A comfortable t-shirt available in multiple colors and sizes.', |
| 13 | + short_description: 'Variable t-shirt with color and size options.', |
| 14 | + attributes: [ |
| 15 | + { |
| 16 | + name: 'Color', |
| 17 | + variation: true, |
| 18 | + options: [ 'Gray', 'Red' ], |
| 19 | + }, |
| 20 | + { |
| 21 | + name: 'Size', |
| 22 | + variation: true, |
| 23 | + options: [ 'M', 'L' ], |
| 24 | + }, |
| 25 | + ], |
| 26 | + default_attributes: [], |
| 27 | + variations: [ |
| 28 | + { |
| 29 | + attributes: [ |
| 30 | + { name: 'Color', option: 'Gray' }, |
| 31 | + { name: 'Size', option: 'M' }, |
| 32 | + ], |
| 33 | + regular_price: '100.00', |
| 34 | + stock_status: 'instock', |
| 35 | + manage_stock: false, |
| 36 | + }, |
| 37 | + { |
| 38 | + attributes: [ |
| 39 | + { name: 'Color', option: 'Gray' }, |
| 40 | + { name: 'Size', option: 'L' }, |
| 41 | + ], |
| 42 | + regular_price: '100.00', |
| 43 | + stock_status: 'instock', |
| 44 | + manage_stock: false, |
| 45 | + }, |
| 46 | + { |
| 47 | + attributes: [ |
| 48 | + { name: 'Color', option: 'Red' }, |
| 49 | + { name: 'Size', option: 'M' }, |
| 50 | + ], |
| 51 | + regular_price: '100.00', |
| 52 | + stock_status: 'instock', |
| 53 | + manage_stock: false, |
| 54 | + }, |
| 55 | + { |
| 56 | + attributes: [ |
| 57 | + { name: 'Color', option: 'Red' }, |
| 58 | + { name: 'Size', option: 'L' }, |
| 59 | + ], |
| 60 | + regular_price: '100.00', |
| 61 | + stock_status: 'instock', |
| 62 | + manage_stock: false, |
| 63 | + }, |
| 64 | + ], |
| 65 | + images: [ |
| 66 | + { |
| 67 | + src: 'https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/vneck-tee-2.jpg', |
| 68 | + }, |
| 69 | + { |
| 70 | + src: 'https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/tshirt-2.jpg', |
| 71 | + }, |
| 72 | + { |
| 73 | + src: 'https://woocommercecore.mystagingwebsite.com/wp-content/uploads/2017/12/t-shirt-with-logo-1.jpg', |
| 74 | + }, |
| 75 | + ], |
| 76 | +}; |
| 77 | + |
6 | 78 | const subscriptionPayPal: WooCommerce.CreateProduct = { |
7 | 79 | name: 'PayPal Subscription Test Product', |
8 | 80 | slug: 'paypal-subscription-test-product', |
@@ -73,6 +145,7 @@ export const products: { |
73 | 145 | [ key: string ]: WooCommerce.CreateProduct; |
74 | 146 | } = { |
75 | 147 | ...baseProducts, |
| 148 | + variationNotSelected100, |
76 | 149 | subscriptionPayPal, |
77 | 150 | subscriptionPayPalFreeTrial, |
78 | 151 | simpleWithStock, |
|
0 commit comments