We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 171c80a commit 2aaa70bCopy full SHA for 2aaa70b
dev/tests/integration/testsuite/Magento/Customer/Block/Address/EditTest.php
@@ -204,4 +204,18 @@ public function testCheckPostCodeLabels(): void
204
)
205
);
206
}
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
+ }
221
0 commit comments