Skip to content

Commit 331b1e0

Browse files
author
Vadim Zubovich
committed
MTO-95: PRs stabilization
- Fixed name conflict.
1 parent c38622c commit 331b1e0

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping.php

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Shipping extends Form
4646
*
4747
* @var string
4848
*/
49-
private $newAddressButton = '.action-show-popup';
49+
private $popupSelector = '.action-show-popup';
5050

5151
/**
5252
* Locator for address select button.
@@ -80,16 +80,6 @@ public function clickOnNewAddressButton()
8080
$this->_rootElement->find($this->newAddressButton)->click();
8181
}
8282

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-
9383
/**
9484
* Get Address Modal Block.
9585
*
@@ -151,24 +141,13 @@ public function isAddressSelected($address)
151141
return $text == $address;
152142
}
153143

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-
165144
/**
166145
* Clicks new address button.
167146
*
168147
* @return void
169148
*/
170-
public function clickNewAddressButton()
149+
public function clickPopupNewAddressButton()
171150
{
172-
$this->_rootElement->find($this->newAddressButton)->click();
151+
$this->_rootElement->find($this->popupSelector)->click();
173152
}
174153
}

dev/tests/functional/tests/app/Magento/Checkout/Test/TestStep/FillShippingAddressStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function run()
102102
'address',
103103
['dataset' => $this->shippingAddressCustomer['new']]
104104
);
105-
$this->checkoutOnepage->getShippingBlock()->clickNewAddressButton();
105+
$this->checkoutOnepage->getShippingBlock()->clickPopupNewAddressButton();
106106
$this->checkoutOnepage->getShippingAddressPopupBlock()->fill($shippingAddress)->clickSaveAddressButton();
107107
}
108108
if (isset($this->shippingAddressCustomer['added'])) {

0 commit comments

Comments
 (0)