Skip to content

Commit 2aaa70b

Browse files
committed
MC-41611: [Magento Cloud] - "State" field in Address Book in Customer Account (frontend) starts as "text" field but then switches to "drop-down"
1 parent 171c80a commit 2aaa70b

File tree

1 file changed

+14
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Customer/Block/Address

1 file changed

+14
-0
lines changed

dev/tests/integration/testsuite/Magento/Customer/Block/Address/EditTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,18 @@ public function testCheckPostCodeLabels(): void
204204
)
205205
);
206206
}
207+
208+
/**
209+
* Check that submit button is disabled
210+
*
211+
* @magentoDataFixture Magento/Customer/_files/customer.php
212+
* @magentoDataFixture Magento/Customer/_files/customer_address.php
213+
* @return void
214+
*/
215+
public function testSubmitButtonIsDisabled(): void
216+
{
217+
$html = $this->block->toHtml();
218+
$buttonXpath = "//form[contains(@class, 'form-address-edit')]//button[@type='submit' and @disabled='disabled']";
219+
$this->assertEquals(1, Xpath::getElementsCountForXpath($buttonXpath, $html));
220+
}
207221
}

0 commit comments

Comments
 (0)