Start automation testing using Playwright.
Scripts for automation testing using Playwright with TypeScript.
- Install an IDE such as Visual Studio Code.
- Install Git Bash.
- Install Node.js.
- Restart your machine.
- Clone the repository:
git clone https://github.com/angraenz/learningplaywright.git
- Navigate into the repository.
cd learningplaywright
- Install Yarn.
npm install -g yarn
- Install Playwright.
yarn create playwright
- Auto generate tests with Codegen.
yarn playwright codegen (url)
- Start the playwright test with UI.
yarn playwright test --ui
a. to check the current status on branch main.
git status
b. to download the latest status of remote repos to the local repos, always do this before merge.
git fetch origin
c. to combine the changes between branch.
git merge origin/main
a. Go to Github.
b. Create an issue using 'Issue' menu, then assign yourself on right panel.
c. Create branch on right panel.
a. Retrieves the latest changes from a remote repository without merging them into your local branch.
git fetch origin
b. For moving/switching to the new branch.
git checkout (the new branch's name)
a. For adding all the new file from local repos.
git add .
b. For adding specific new file from local repos, choose between a or b.
git add file_name
c. To save the changes in local repos.
git commit -m (message: 'Nomor Tiket nama branch', ex: '#3 Changed faker script')
d. To upload the local repos to remote repos
git push origin branch_name
a. Go to Github.
b. Create Pull Request.
c. Add description.
d. Add reviewer on right panel.
e. Create pull request.
f. After create the PR, send the request to the group to get review.
g. As reviewer, check file changed, then add comment.