Add Playwright Test
This commit is contained in:
parent
25f813ea2a
commit
6882d9643f
7 changed files with 262 additions and 0 deletions
20
UI_Tests/Readme.md
Normal file
20
UI_Tests/Readme.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
|
||||
|
||||
## Linux
|
||||
ให้อัปเดต library ที่จำเป็นก่อน
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt-get install libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxkbcommon0 libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2
|
||||
```
|
||||
|
||||
## เรียกใช้งาน
|
||||
|
||||
```
|
||||
# ถ้า clone มาเรียกคำสั่งนี้ก่อน
|
||||
npx playwright install
|
||||
npx playwright test --project=chromium
|
||||
npx playwright show-report
|
||||
```
|
||||
|
||||
ให้ติดตั้ง [LetxPath](https://chrome.google.com/webstore/detail/letxpath/bekehlnepmijedippfibbmbglglbmlgk) ใน chrome เพื่อดู selector ช่วยสำหรับเขียนโค้ดทดสอบได้ง่ายขึ้น
|
||||
Loading…
Add table
Add a link
Reference in a new issue