-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github actions, playwriht version update * fix on working directory in github actions * fix * video off * Monkey Tests introduces * fix on Allure story * cleaning, and preparing for DEMO
- Loading branch information
1 parent
52dfe30
commit 502ee18
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## Locators naming conventions | ||
1. Every locator should start with prefix: locator | ||
2. Every locator/selector should have suffix which indicate what kind of element it is: | ||
- Button | ||
- Input | ||
- Link | ||
- Label | ||
- Dropdown | ||
- Checkbox | ||
- Image | ||
- Icon | ||
- Tab | ||
- Table | ||
- etc... | ||
|
||
|
||
Example: | ||
` locatorSearchButton, locatorWarningIcon | ||
|
||
|
||
|
||
## Methods naming conventions: | ||
Methods start with prefix | ||
- clickOn - for clicking on elements, submiting | ||
- fill - for filling input elements | ||
- check - for asserting, ex. checkVisible, checkEnabled, checkSelected | ||
- select - for selecting dropdown elements | ||
- get - for getting the value of element | ||
- is - for getting the boolean information about element, ex. isVisible, isEnabled, isSelected | ||
|
||
Methods should have suffix which indicates the type of element - the same as locators, example: clickOnSubmitButton, fillNameInput | ||
|
||
|
||
## Page object conventions: | ||
1. locators should be initialized in initLocators method | ||
2. page should be initializes with PlaywrightFactory.getPage() | ||
|
||
|
||
## Test conventions: | ||
1. Test should inherit from BaseTest class | ||
2. Test data should be put as a class variable in TestCases class | ||
3. Test should use page object methods to interact with the page |
File renamed without changes.