Practice test automation with
on Let Code
Note
- Let Code is a set of very clean pages along with video tutorials explaining how to automate interactions.
End to End testing using:
- Playwright https://playwright.dev/
- TypeScript https://www.typescriptlang.org/
This tests are purely for Playwright features practice to automate interactions with:
- Inputs
- Buttons
- Select ✅
- Alert 💬
- Frame 👉
- Radio 🔘
- Window
- Elements 🎲
- Drag&Drop
- Sort
- Multi-select 💫
- Slider
- Table
- Calendar 📆
- Waits 🕜
- Forms
⁉️ - File 📝
- Shadow 👻
- tests 📁 This folder contains actual test scripts.
- services 📁 This folder containse enums,pages and steps. Page functions are functions that return Locators or Promises<> that we solve later. We use those functions in the Steps class. The Steps class literally contains the steps that we will do in the test files to execute a test case (add a book to the cart, open the cart, confirm that the book is in the cart).
- download 📁 This folder contains downloaded files for testing purposes.
- test-data 📁 This folder contains files with test data.
- 📄 .gitignore: This file helps while using git repository
- 📄 package.json and package-lock.json: Those files helps to track dependencies, create a shortcut for running tests, etc.
- 📄 playwright.config.ts: This is the global configuration file for the Playwright
- 📄 tsconfig.json: This is a config file which helps us avoid some JS syntax errors & use better the TS features.
- 📄 environments.json:
- 📄 selectors.json: This is where we store all selectors.
npm run test
npm run test-a
npm run test-d
npm run test-i
npm run test-s
npm run test-r
npm run test-sl
npm run test-t
npm run test-f