Skip to content

Commit e948445

Browse files
author
Dmytro Aponasenko
committed
MTA-2712: Functional test maintenance. Part 1
1 parent 6262969 commit e948445

File tree

12 files changed

+77
-147
lines changed

12 files changed

+77
-147
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/FormPageActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class FormPageActions extends PageActions
4949
*
5050
* @var string
5151
*/
52-
protected $deleteButton = '#delete';
52+
protected $deleteButton = '.delete';
5353

5454
/**
5555
* Magento loader

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ class Sidebar extends ListCompare
3232
*/
3333
protected $clearAll = '#compare-clear-all';
3434

35-
/**
36-
* Selector for alert.
37-
*
38-
* @var string
39-
*/
40-
protected $alertModal = '._show[data-role=modal]';
41-
4235
/**
4336
* Get compare products block content.
4437
*
@@ -86,9 +79,6 @@ function () use ($rootElement, $selector) {
8679
}
8780
);
8881
$this->_rootElement->find($this->clearAll)->click();
89-
$element = $this->browser->find($this->alertModal);
90-
/** @var \Magento\Ui\Test\Block\Adminhtml\Modal $modal */
91-
$modal = $this->blockFactory->create('Magento\Ui\Test\Block\Adminhtml\Modal', ['element' => $element]);
92-
$modal->acceptAlert();
82+
$this->browser->acceptAlert();
9383
}
9484
}

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@
271271
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInStock" />
272272
<constraint name="Magento\Catalog\Test\Constraint\AssertProductVisibleInCategory" />
273273
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
274-
<constraint name="Magento\Catalog\Test\Constraint\AssertProductGroupedPriceOnProductPage" />
275274
</variation>
276275
<variation name="CreateSimpleProductEntityTestVariation16">
277276
<data name="description" xsi:type="string">Create product with tax class and check absent special price</data>

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateVirtualProductEntityTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
7777
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSearchableBySku" />
7878
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
79-
<constraint name="Magento\Catalog\Test\Constraint\AssertProductGroupedPriceOnProductPage" />
8079
<constraint name="Magento\Catalog\Test\Constraint\AssertProductCustomOptionsOnProductPage" />
8180
</variation>
8281
<variation name="CreateVirtualProductEntityTestVariation6">

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateVirtualProductEntityTest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
<constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
119119
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
120120
<constraint name="Magento\Catalog\Test\Constraint\AssertProductVisibleInCategory" />
121-
<constraint name="Magento\Catalog\Test\Constraint\AssertProductGroupedPriceOnProductPage" />
122121
<constraint name="Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage" />
123122
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSearchableBySku" />
124123
</variation>
@@ -210,7 +209,6 @@
210209
<constraint name="Magento\Catalog\Test\Constraint\AssertProductForm" />
211210
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
212211
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSpecialPriceOnProductPage" />
213-
<constraint name="Magento\Catalog\Test\Constraint\AssertProductGroupedPriceOnProductPage" />
214212
<constraint name="Magento\Catalog\Test\Constraint\AssertProductTierPriceOnProductPage" />
215213
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCategory" />
216214
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSearchableBySku" />

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,83 +10,82 @@
1010
use Magento\Mtf\Client\Locator;
1111

1212
/**
13-
* Class Totals
14-
* Cart totals block
13+
* Cart totals block.
1514
*/
1615
class Totals extends Block
1716
{
1817
/**
19-
* Grand total search mask
18+
* Grand total search mask.
2019
*
2120
* @var string
2221
*/
2322
protected $grandTotal = '.grand.totals .price';
2423

2524
/**
26-
* Grand total search mask
25+
* Grand total search mask.
2726
*
2827
* @var string
2928
*/
3029
protected $grandTotalExclTax = '.totals.grand.excl span';
3130

3231
/**
33-
* Grand total search mask
32+
* Grand total search mask.
3433
*
3534
* @var string
3635
*/
3736
protected $grandTotalInclTax = '.totals.grand.incl span';
3837

3938
/**
40-
* Subtotal search mask
39+
* Subtotal search mask.
4140
*
4241
* @var string
4342
*/
4443
protected $subtotal = '.totals.sub .price';
4544

4645
/**
47-
* Subtotal search mask
46+
* Subtotal search mask.
4847
*
4948
* @var string
5049
*/
5150
protected $subtotalExclTax = '.totals.sub.excl .price';
5251

5352
/**
54-
* Subtotal search mask
53+
* Subtotal search mask.
5554
*
5655
* @var string
5756
*/
5857
protected $subtotalInclTax = '.totals.sub.incl .price';
5958

6059
/**
61-
* Tax search mask
60+
* Tax search mask.
6261
*
6362
* @var string
6463
*/
6564
protected $tax = '.totals-tax span';
6665

6766
/**
68-
* Get shipping price selector
67+
* Get shipping price selector.
6968
*
7069
* @var string
7170
*/
7271
protected $shippingPriceSelector = '.shipping.excl .price';
7372

7473
/**
75-
* Get discount
74+
* Get discount.
7675
*
7776
* @var string
7877
*/
7978
protected $discount = '[class=totals] .amount .price';
8079

8180
/**
82-
* Get shipping price including tax selector
81+
* Get shipping price including tax selector.
8382
*
8483
* @var string
8584
*/
8685
protected $shippingPriceInclTaxSelector = '.shipping.incl .price';
8786

8887
/**
89-
* Get shipping price block selector
88+
* Get shipping price block selector.
9089
*
9190
* @var string
9291
*/
@@ -100,7 +99,7 @@ class Totals extends Block
10099
protected $blockWaitElement = '.loading-mask';
101100

102101
/**
103-
* Get Grand Total Text
102+
* Get Grand Total Text.
104103
*
105104
* @return string
106105
*/
@@ -111,7 +110,7 @@ public function getGrandTotal()
111110
}
112111

113112
/**
114-
* Get Grand Total Text
113+
* Get Grand Total Text.
115114
*
116115
* @return string|null
117116
*/
@@ -122,7 +121,7 @@ public function getGrandTotalIncludingTax()
122121
}
123122

124123
/**
125-
* Get Grand Total Text
124+
* Get Grand Total Text.
126125
*
127126
* @return string|null
128127
*/
@@ -133,7 +132,7 @@ public function getGrandTotalExcludingTax()
133132
}
134133

135134
/**
136-
* Get Tax text from Order Totals
135+
* Get Tax text from Order Totals.
137136
*
138137
* @return string|null
139138
*/
@@ -144,7 +143,7 @@ public function getTax()
144143
}
145144

146145
/**
147-
* Check that Tax is visible
146+
* Check that Tax is visible.
148147
*
149148
* @return bool
150149
*/
@@ -154,7 +153,7 @@ public function isTaxVisible()
154153
}
155154

156155
/**
157-
* Get Subtotal text
156+
* Get Subtotal text.
158157
*
159158
* @return string
160159
*/
@@ -165,7 +164,7 @@ public function getSubtotal()
165164
}
166165

167166
/**
168-
* Get Subtotal text
167+
* Get Subtotal text.
169168
*
170169
* @return string|null
171170
*/
@@ -176,7 +175,7 @@ public function getSubtotalIncludingTax()
176175
}
177176

178177
/**
179-
* Get Subtotal text
178+
* Get Subtotal text.
180179
*
181180
* @return string|null
182181
*/
@@ -187,7 +186,7 @@ public function getSubtotalExcludingTax()
187186
}
188187

189188
/**
190-
* Method that escapes currency symbols
189+
* Method that escapes currency symbols.
191190
*
192191
* @param string $price
193192
* @return string|null
@@ -199,7 +198,7 @@ protected function escapeCurrency($price)
199198
}
200199

201200
/**
202-
* Get discount
201+
* Get discount.
203202
*
204203
* @return string|null
205204
*/
@@ -210,7 +209,7 @@ public function getDiscount()
210209
}
211210

212211
/**
213-
* Get shipping price
212+
* Get shipping price.
214213
*
215214
* @return string|null
216215
*/
@@ -221,7 +220,7 @@ public function getShippingPrice()
221220
}
222221

223222
/**
224-
* Get shipping price
223+
* Get shipping price.
225224
*
226225
* @return string|null
227226
*/
@@ -232,7 +231,7 @@ public function getShippingPriceInclTax()
232231
}
233232

234233
/**
235-
* Is visible shipping price block
234+
* Is visible shipping price block.
236235
*
237236
* @return bool
238237
*/

dev/tests/functional/tests/app/Magento/Downloadable/Test/TestCase/CreateDownloadableProductEntityTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@
276276
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInGrid" />
277277
<constraint name="Magento\Downloadable\Test\Constraint\AssertDownloadableProductForm" />
278278
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
279-
<constraint name="Magento\Catalog\Test\Constraint\AssertProductGroupedPriceOnProductPage" />
280279
</variation>
281280
<variation name="CreateDownloadableProductEntityTestVariation15">
282281
<data name="description" xsi:type="string">Create product with tier price</data>

dev/tests/functional/tests/app/Magento/Fedex/Test/TestCase/OnePageCheckoutTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<data name="cart/data/shipping_method" xsi:type="string">International Economy</data>
1919
<data name="payment/method" xsi:type="string">checkmo</data>
2020
<data name="configData" xsi:type="string">checkmo, fedex, shipping_origin_US_CA</data>
21+
<data name="tag" xsi:type="string">test_type:3rd_party_test</data>
2122
<constraint name="Magento\Checkout\Test\Constraint\AssertOrderSuccessPlacedMessage" />
2223
<constraint name="Magento\Sales\Test\Constraint\AssertOrderInOrdersGrid" />
2324
<constraint name="Magento\Checkout\Test\Constraint\AssertCartIsEmpty" />

dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedPriceOnGroupedProductPage.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)