File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed
dev/tests/functional/tests/app/Magento/Checkout/Test Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class Shipping extends Form
46
46
*
47
47
* @var string
48
48
*/
49
- private $ newAddressButton = '.action-show-popup ' ;
49
+ private $ popupSelector = '.action-show-popup ' ;
50
50
51
51
/**
52
52
* Locator for address select button.
@@ -80,16 +80,6 @@ public function clickOnNewAddressButton()
80
80
$ this ->_rootElement ->find ($ this ->newAddressButton )->click ();
81
81
}
82
82
83
- /**
84
- * 'Ship here' button click.
85
- *
86
- * @return void
87
- */
88
- public function clickShipHere ()
89
- {
90
- $ this ->_rootElement ->find ($ this ->shipHereButton , Locator::SELECTOR_XPATH )->click ();
91
- }
92
-
93
83
/**
94
84
* Get Address Modal Block.
95
85
*
@@ -151,24 +141,13 @@ public function isAddressSelected($address)
151
141
return $ text == $ address ;
152
142
}
153
143
154
- /**
155
- * Checks if new address button is visible.
156
- *
157
- * @return bool
158
- */
159
- public function isNewAddressButtonVisible ()
160
- {
161
- $ button = $ this ->_rootElement ->find ($ this ->newAddressButton );
162
- return $ button ->isVisible ();
163
- }
164
-
165
144
/**
166
145
* Clicks new address button.
167
146
*
168
147
* @return void
169
148
*/
170
- public function clickNewAddressButton ()
149
+ public function clickPopupNewAddressButton ()
171
150
{
172
- $ this ->_rootElement ->find ($ this ->newAddressButton )->click ();
151
+ $ this ->_rootElement ->find ($ this ->popupSelector )->click ();
173
152
}
174
153
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public function run()
102
102
'address ' ,
103
103
['dataset ' => $ this ->shippingAddressCustomer ['new ' ]]
104
104
);
105
- $ this ->checkoutOnepage ->getShippingBlock ()->clickNewAddressButton ();
105
+ $ this ->checkoutOnepage ->getShippingBlock ()->clickPopupNewAddressButton ();
106
106
$ this ->checkoutOnepage ->getShippingAddressPopupBlock ()->fill ($ shippingAddress )->clickSaveAddressButton ();
107
107
}
108
108
if (isset ($ this ->shippingAddressCustomer ['added ' ])) {
You can’t perform that action at this time.
0 commit comments