filmov
tv
Playwright Beginner Tutorial 9 | Assertions
Показать описание
00:00 *Intro*
00:21 *What are Assertions*
Checks or Verification
Check actual = expected
00:56 *Assertions in Playwright*
Playwright Test uses expect library for test assertions
01:14 *How to add Assertions*
02:34 *Create a new Test*
05:10 *Command to Run the test*
06:37 *Check element Present/Not present*
await page.$('text=The Kitchen')
11:30 *Check element Visible/Hidden*
12:17 *Check element Enabled/Disabled*
15:23 *How to add Soft Assertions*
do not terminate test execution
mark the test as failed
16:50 *Check element Text matches value or not*
18:12 *Assert Element attribute *
await expect(locator).toHaveClass('selected row');
23:10 *Screenshot Moment*
23:12 *Check Url of the page*
24:28 *Check Title of the page*
await expect(page).toHaveTitle(/.*Kitchen/);
25:36 *Check Page matches screenshot* Visual Validation
await expect(page).toHaveScreenshot();
29:27 *Screenshot Moment | Outro*
#playwright #automation #testing
CI CD DEVOPS
UI TESTING
API TESTING
PERFORMANCE TESTING
IDE
PROGRAMMING
▬▬ BUILD TOOLS ▬▬
▬▬ SOURCE CODE MANAGEMENT ▬▬
▬▬ DATA FORMATS ▬▬
▬▬ RAGHAV PAL ▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
NEVER STOP LEARNING
Raghav Pal
00:21 *What are Assertions*
Checks or Verification
Check actual = expected
00:56 *Assertions in Playwright*
Playwright Test uses expect library for test assertions
01:14 *How to add Assertions*
02:34 *Create a new Test*
05:10 *Command to Run the test*
06:37 *Check element Present/Not present*
await page.$('text=The Kitchen')
11:30 *Check element Visible/Hidden*
12:17 *Check element Enabled/Disabled*
15:23 *How to add Soft Assertions*
do not terminate test execution
mark the test as failed
16:50 *Check element Text matches value or not*
18:12 *Assert Element attribute *
await expect(locator).toHaveClass('selected row');
23:10 *Screenshot Moment*
23:12 *Check Url of the page*
24:28 *Check Title of the page*
await expect(page).toHaveTitle(/.*Kitchen/);
25:36 *Check Page matches screenshot* Visual Validation
await expect(page).toHaveScreenshot();
29:27 *Screenshot Moment | Outro*
#playwright #automation #testing
CI CD DEVOPS
UI TESTING
API TESTING
PERFORMANCE TESTING
IDE
PROGRAMMING
▬▬ BUILD TOOLS ▬▬
▬▬ SOURCE CODE MANAGEMENT ▬▬
▬▬ DATA FORMATS ▬▬
▬▬ RAGHAV PAL ▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
NEVER STOP LEARNING
Raghav Pal
Комментарии