You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.2/coding-standards/technical-guidelines.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -745,9 +745,33 @@ You need to read configuration from different sources (like database or filesyst
745
745
746
746
11.3.2.3. There MUST be only one `<section>` entity per file.
747
747
748
+
#### 11.3.3. Elements
749
+
750
+
11.3.3.1. All element selectors MUST follow these [best practices](https://devdocs.magento.com/mftf/docs/best-practices.html).
751
+
752
+
11.3.3.2. The element `name` MUST be unique within the `<section>`.
753
+
754
+
11.3.3.3. The element `name` SHOULD be written in [camelCase](http://wiki.c2.com/?CamelCase).
755
+
756
+
11.3.3.4. Parameterized selectors MUST use descriptive names for their parameters.
757
+
758
+
11.3.3.5. Elements SHOULD use the `timeout` attribute to wait after interactions.
759
+
760
+
#### 11.3.4. Data Entities
761
+
762
+
11.3.4.1. Data entity file names MUST follow this pattern:
763
+
764
+
* {Type}Data.xml, where {Type} describes the type of entities.
765
+
* Use [PascalCase](http://wiki.c2.com/?PascalCase).
766
+
* Examples: ProductData.xml or CustomerData.xml
767
+
768
+
11.3.4.2. Data entities SHOULD make use of `unique="suffix"` or `unique="prefix"` to ensure that tests using the entity can be repeatedly ran against the same environment.
769
+
770
+
11.3.4.3. Changes to existing data entities MUST be compatible with existing tests.
771
+
748
772
## 12. Web API
749
773
750
-
12.1. Both REST and SOAP API's MUST be exposed.
774
+
12.1. Both REST and SOAP APIs MUST be exposed.
751
775
752
776
12.2. All [Web API](https://glossary.magento.com/web-api) GET endpoints MUST return lists of entities.
0 commit comments