File tree Expand file tree Collapse file tree 2 files changed +60
-2
lines changed
dev/tests/functional/tests/app/Magento/Checkout/Test Expand file tree Collapse file tree 2 files changed +60
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Checkout \Test \Block \Onepage ;
8
8
9
- use Magento \Checkout \ Test \ Block \ Onepage \ AbstractReview ;
9
+ use Magento \Mtf \ Client \ Locator ;
10
10
11
11
/**
12
12
* One page checkout status review block.
13
13
*/
14
14
class Review extends AbstractReview
15
15
{
16
- //
16
+ /**
17
+ * Review gift card line locator.
18
+ *
19
+ * @var string
20
+ */
21
+ private $ giftCardTotalSelector = '//div[contains(@class, "opc-block-summary")]//tr[contains(@class, "giftcard")] ' ;
22
+
23
+ /**
24
+ * Return if gift card is applied.
25
+ *
26
+ * @return bool
27
+ */
28
+ public function isGiftCardApplied ()
29
+ {
30
+ $ this ->waitForElementNotVisible ($ this ->waitElement );
31
+
32
+ return $ this ->_rootElement ->find ($ this ->giftCardTotalSelector , Locator::SELECTOR_XPATH )->isVisible ();
33
+ }
17
34
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © 2013-2017 Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ namespace Magento \Checkout \Test \TestStep ;
8
+
9
+ use Magento \Checkout \Test \Page \CheckoutCart ;
10
+ use Magento \Mtf \TestStep \TestStepInterface ;
11
+
12
+ /**
13
+ * Proceed to checkout cart page.
14
+ */
15
+ class ViewAndEditCartStep implements TestStepInterface
16
+ {
17
+ /**
18
+ * Checkout cart page.
19
+ *
20
+ * @var CheckoutCart
21
+ */
22
+ protected $ checkoutCart ;
23
+
24
+ /**
25
+ * @param CheckoutCart $checkoutCart
26
+ */
27
+ public function __construct (CheckoutCart $ checkoutCart )
28
+ {
29
+ $ this ->checkoutCart = $ checkoutCart ;
30
+ }
31
+
32
+ /**
33
+ * Proceed to checkout cart page.
34
+ *
35
+ * @return void
36
+ */
37
+ public function run ()
38
+ {
39
+ $ this ->checkoutCart ->open ();
40
+ }
41
+ }
You can’t perform that action at this time.
0 commit comments