|
1 |
| -<?php |
2 |
| -/** |
3 |
| - * Copyright © 2015 Magento. All rights reserved. |
4 |
| - * See COPYING.txt for license details. |
5 |
| - */ |
6 |
| - |
7 |
| -namespace Magento\ConfigurableProduct\Test\TestCase; |
8 |
| - |
9 |
| -use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex; |
10 |
| -use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew; |
11 |
| -use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct; |
12 |
| -use Magento\Mtf\TestCase\Injectable; |
13 |
| - |
14 |
| -/** |
15 |
| - * Test Coverage for CreateConfigurableProductEntity |
16 |
| - * |
17 |
| - * Test Flow: |
18 |
| - * |
19 |
| - * Preconditions: |
20 |
| - * 1. Two simple products are created. |
21 |
| - * 2. Configurable attribute with two options is created |
22 |
| - * 3. Configurable attribute added to Default template |
23 |
| - * |
24 |
| - * Steps: |
25 |
| - * 1. Go to Backend |
26 |
| - * 2. Open Product -> Catalog |
27 |
| - * 3. Click on narrow near "Add Product" button |
28 |
| - * 4. Select Configurable Product |
29 |
| - * 5. Fill in data according to data sets |
30 |
| - * 5.1 If field "attributeNew/dataset" is not empty - search created attribute by putting it's name |
31 |
| - * to variation Search field. |
32 |
| - * 5.2 If "attribute/dataset" is not empty- create new Variation Set |
33 |
| - * 6. Save product |
34 |
| - * 7. Perform all assertions |
35 |
| - * |
36 |
| - * @group Configurable_Product_(MX) |
37 |
| - * @ZephyrId MAGETWO-26041 |
38 |
| - */ |
39 |
| -class CreateConfigurableProductEntityTest extends Injectable |
40 |
| -{ |
41 |
| - /* tags */ |
42 |
| - const TEST_TYPE = 'acceptance_test, extended_acceptance_test'; |
43 |
| - const MVP = 'yes'; |
44 |
| - const DOMAIN = 'MX'; |
45 |
| - /* end tags */ |
46 |
| - |
47 |
| - /** |
48 |
| - * Product page with a grid |
49 |
| - * |
50 |
| - * @var CatalogProductIndex |
51 |
| - */ |
52 |
| - protected $productIndex; |
53 |
| - |
54 |
| - /** |
55 |
| - * Page to create a product |
56 |
| - * |
57 |
| - * @var CatalogProductNew |
58 |
| - */ |
59 |
| - protected $productNew; |
60 |
| - |
61 |
| - /** |
62 |
| - * Injection data |
63 |
| - * |
64 |
| - * @param CatalogProductIndex $productIndex |
65 |
| - * @param CatalogProductNew $productNew |
66 |
| - * @return void |
67 |
| - */ |
68 |
| - public function __inject(CatalogProductIndex $productIndex, CatalogProductNew $productNew) |
69 |
| - { |
70 |
| - $this->productIndex = $productIndex; |
71 |
| - $this->productNew = $productNew; |
72 |
| - } |
73 |
| - |
74 |
| - /** |
75 |
| - * Test create catalog Configurable product run |
76 |
| - * |
77 |
| - * @param ConfigurableProduct $product |
78 |
| - * @return void |
79 |
| - */ |
80 |
| - public function test(ConfigurableProduct $product) |
81 |
| - { |
82 |
| - $this->markTestIncomplete('MAGETWO-48724'); |
83 |
| - // Steps |
84 |
| - $this->productIndex->open(); |
85 |
| - $this->productIndex->getGridPageActionBlock()->addProduct('configurable'); |
86 |
| - $this->productNew->getProductForm()->fill($product); |
87 |
| - $this->productNew->getFormPageActions()->save($product); |
88 |
| - } |
89 |
| -} |
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Copyright © 2015 Magento. All rights reserved. |
| 4 | + * See COPYING.txt for license details. |
| 5 | + */ |
| 6 | + |
| 7 | +namespace Magento\ConfigurableProduct\Test\TestCase; |
| 8 | + |
| 9 | +use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex; |
| 10 | +use Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew; |
| 11 | +use Magento\ConfigurableProduct\Test\Fixture\ConfigurableProduct; |
| 12 | +use Magento\Mtf\TestCase\Injectable; |
| 13 | + |
| 14 | +/** |
| 15 | + * Test Coverage for CreateConfigurableProductEntity |
| 16 | + * |
| 17 | + * Test Flow: |
| 18 | + * |
| 19 | + * Preconditions: |
| 20 | + * 1. Two simple products are created. |
| 21 | + * 2. Configurable attribute with two options is created |
| 22 | + * 3. Configurable attribute added to Default template |
| 23 | + * |
| 24 | + * Steps: |
| 25 | + * 1. Go to Backend |
| 26 | + * 2. Open Product -> Catalog |
| 27 | + * 3. Click on narrow near "Add Product" button |
| 28 | + * 4. Select Configurable Product |
| 29 | + * 5. Fill in data according to data sets |
| 30 | + * 5.1 If field "attributeNew/dataset" is not empty - search created attribute by putting it's name |
| 31 | + * to variation Search field. |
| 32 | + * 5.2 If "attribute/dataset" is not empty- create new Variation Set |
| 33 | + * 6. Save product |
| 34 | + * 7. Perform all assertions |
| 35 | + * |
| 36 | + * @group Configurable_Product_(MX) |
| 37 | + * @ZephyrId MAGETWO-26041 |
| 38 | + */ |
| 39 | +class CreateConfigurableProductEntityTest extends Injectable |
| 40 | +{ |
| 41 | + /* tags */ |
| 42 | + const TEST_TYPE = 'acceptance_test, extended_acceptance_test'; |
| 43 | + const MVP = 'yes'; |
| 44 | + const DOMAIN = 'MX'; |
| 45 | + /* end tags */ |
| 46 | + |
| 47 | + /** |
| 48 | + * Product page with a grid |
| 49 | + * |
| 50 | + * @var CatalogProductIndex |
| 51 | + */ |
| 52 | + protected $productIndex; |
| 53 | + |
| 54 | + /** |
| 55 | + * Page to create a product |
| 56 | + * |
| 57 | + * @var CatalogProductNew |
| 58 | + */ |
| 59 | + protected $productNew; |
| 60 | + |
| 61 | + /** |
| 62 | + * Injection data |
| 63 | + * |
| 64 | + * @param CatalogProductIndex $productIndex |
| 65 | + * @param CatalogProductNew $productNew |
| 66 | + * @return void |
| 67 | + */ |
| 68 | + public function __inject(CatalogProductIndex $productIndex, CatalogProductNew $productNew) |
| 69 | + { |
| 70 | + $this->productIndex = $productIndex; |
| 71 | + $this->productNew = $productNew; |
| 72 | + } |
| 73 | + |
| 74 | + /** |
| 75 | + * Test create catalog Configurable product run |
| 76 | + * |
| 77 | + * @param ConfigurableProduct $product |
| 78 | + * @return void |
| 79 | + */ |
| 80 | + public function test(ConfigurableProduct $product) |
| 81 | + { |
| 82 | + $this->markTestIncomplete('MAGETWO-48724'); |
| 83 | + // Steps |
| 84 | + $this->productIndex->open(); |
| 85 | + $this->productIndex->getGridPageActionBlock()->addProduct('configurable'); |
| 86 | + $this->productNew->getProductForm()->fill($product); |
| 87 | + $this->productNew->getFormPageActions()->save($product); |
| 88 | + } |
| 89 | +} |
0 commit comments