mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Cast id to string, as select option from mink expects string
This commit is contained in:
parent
f322dffc7c
commit
4d4c81043d
1 changed files with 2 additions and 2 deletions
|
|
@ -249,14 +249,14 @@ class AddressPage extends ShopPage implements AddressPageInterface
|
||||||
|
|
||||||
public function selectShippingAddressFromAddressBook(AddressInterface $address): void
|
public function selectShippingAddressFromAddressBook(AddressInterface $address): void
|
||||||
{
|
{
|
||||||
$this->getElement('shipping_address_book')->selectOption($address->getId());
|
$this->getElement('shipping_address_book')->selectOption((string) $address->getId());
|
||||||
|
|
||||||
$this->waitForElementUpdate('form');
|
$this->waitForElementUpdate('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function selectBillingAddressFromAddressBook(AddressInterface $address): void
|
public function selectBillingAddressFromAddressBook(AddressInterface $address): void
|
||||||
{
|
{
|
||||||
$this->getElement('billing_address_book')->selectOption($address->getId());
|
$this->getElement('billing_address_book')->selectOption((string) $address->getId());
|
||||||
|
|
||||||
$this->waitForElementUpdate('form');
|
$this->waitForElementUpdate('form');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue