Cast id to string, as select option from mink expects string

This commit is contained in:
TheMilek 2026-03-24 08:31:30 +01:00 committed by Grzegorz Sadowski
parent f322dffc7c
commit 4d4c81043d
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -249,14 +249,14 @@ class AddressPage extends ShopPage implements AddressPageInterface
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');
}
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');
}