diff --git a/guides/v2.2/coding-standards/technical-guidelines.md b/guides/v2.2/coding-standards/technical-guidelines.md index cba76c2ca75..a9f2206e140 100644 --- a/guides/v2.2/coding-standards/technical-guidelines.md +++ b/guides/v2.2/coding-standards/technical-guidelines.md @@ -715,6 +715,37 @@ You need to read configuration from different sources (like database or filesyst 11.2.3. `ObjectManagerHelper` MAY BE used to automatically mock all dependencies of the object under test. +### 11.3. Functional Testing + +#### 11.3.1. Pages + +11.3.1.1. Page file names MUST follow this pattern: + +* {Admin or Storefront}{Description}Page.xml, where {Description} briefly describes the page under test. +* Use [PascalCase](http://wiki.c2.com/?PascalCase). +* Example: AdminProductAttributeGridPage.xml + +11.3.1.2. Page `name` attribute MUST be the same as the file name. + +11.3.1.3. Page `module` attribute MUST follow this pattern: + +* {VendorName}_{ModuleName} +* Example: Magento_Backend + +11.3.1.4. There MUST be only one `` entity per file. + +#### 11.3.2. Sections + +11.3.2.1. Section file names MUST follow this pattern: + +* {Admin or Storefront}{Description}Section.xml, where {Description} briefly describes the section under test. +* Use [PascalCase](http://wiki.c2.com/?PascalCase). +* Example: StorefrontCheckoutCartSummarySection.xml + +11.3.2.2. Section `name` attribute MUST be the same as the file name. + +11.3.2.3. There MUST be only one `
` entity per file. + ## 12. Web API 12.1. Both REST and SOAP API's MUST be exposed.