Skip to content

Commit 502ee18

Browse files
Fix/cleaning (#430)
* 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
1 parent 52dfe30 commit 502ee18

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Locators naming conventions
2+
1. Every locator should start with prefix: locator
3+
2. Every locator/selector should have suffix which indicate what kind of element it is:
4+
- Button
5+
- Input
6+
- Link
7+
- Label
8+
- Dropdown
9+
- Checkbox
10+
- Image
11+
- Icon
12+
- Tab
13+
- Table
14+
- etc...
15+
16+
17+
Example:
18+
` locatorSearchButton, locatorWarningIcon
19+
20+
21+
22+
## Methods naming conventions:
23+
Methods start with prefix
24+
- clickOn - for clicking on elements, submiting
25+
- fill - for filling input elements
26+
- check - for asserting, ex. checkVisible, checkEnabled, checkSelected
27+
- select - for selecting dropdown elements
28+
- get - for getting the value of element
29+
- is - for getting the boolean information about element, ex. isVisible, isEnabled, isSelected
30+
31+
Methods should have suffix which indicates the type of element - the same as locators, example: clickOnSubmitButton, fillNameInput
32+
33+
34+
## Page object conventions:
35+
1. locators should be initialized in initLocators method
36+
2. page should be initializes with PlaywrightFactory.getPage()
37+
38+
39+
## Test conventions:
40+
1. Test should inherit from BaseTest class
41+
2. Test data should be put as a class variable in TestCases class
42+
3. Test should use page object methods to interact with the page

mrchecker-playwright-framework-empty/playwrightRecoding.txt renamed to mrchecker-playwright-framework/src/test/resources/demo/playwrightRecoding.txt

File renamed without changes.

0 commit comments

Comments
 (0)