File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
dev/tests/functional/tests/app/Magento/Customer/Test/Block/Address Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ class Edit extends Form
30
30
*/
31
31
protected $ vatFieldId = 'vat_id ' ;
32
32
33
+ /**
34
+ * Locator for address simple (input, textarea, not multiple fields) attribute
35
+ *
36
+ * @var string
37
+ */
38
+ private $ addressSimpleAttribute = "[name='%s'] " ;
39
+
33
40
/**
34
41
* Edit customer address
35
42
*
@@ -77,4 +84,15 @@ protected function dataMapping(array $fields = null, $parent = null)
77
84
}
78
85
return parent ::dataMapping ($ fields , $ parent );
79
86
}
87
+
88
+ /**
89
+ * Check if Customer Address Simple(input, textarea, not multiple fields) Attribute visible
90
+ *
91
+ * @param string $attributeCode
92
+ * @return bool
93
+ */
94
+ public function isAddressSimpleAttributeVisible ($ attributeCode )
95
+ {
96
+ return $ this ->_rootElement ->find (sprintf ($ this ->addressSimpleAttribute , $ attributeCode ))->isVisible ();
97
+ }
80
98
}
You can’t perform that action at this time.
0 commit comments