Demo tests for the purpose of study Test Automation in Kehtna school.
- Theory
1.1. Speak why test automation is useful?
1.2. Test automation pyramid - WebdriverIO https://webdriver.io/docs/gettingstarted
2.1. Install WebdriverIO
2.2. Run automatically generated test
2.3. WebdriverIO Chrome Recorder https://webdriver.io/docs/record -> Record - Replay
2.4. Export WDIO test: extract as WebdriverIO Test -> put in a project
2.5. Run single test "--spec"
2.6. Explain selectors https://webdriver.io/docs/selectors/
2.6.1. Fix selectors (task 3): menus with sub-menus https://www.w3schools.com/cssref/css_selectors.php
2.7. Refactor
2.7.1. Array of elements of common selector -> .desktop-menu>ul>li>a[class="special"]
2.7.2. Tasks 1 & 2: https://webdriver.io/docs/api
2.8. Make it test: add expectations for all menus -> .desktop-menu>ul>li
2.8.1. Discuss how to refactor -> Refactor the test
2.9. Make it test menus with sub-menus -> .desktop-menu a[class=" mainOverride"]
2.10. Introduce suites
2.10.1. Run "main-menus" suite
2.10.2. Task 4: Run "sub-menus" suite
2.11. Tasks 5, 6, 7
2.11.1. Sub-menus correspond to literal expectations