Visual Testing in Playwright: Ensure UI Consistency | Complete Tutorial

  Рет қаралды 7,208

CommitQuality

CommitQuality

Жыл бұрын

Welcome to our comprehensive tutorial on Visual Regression Testing in Playwright! In this in-depth video, we'll delve into the world of visual regression testing and explore how Playwright can help you ensure UI consistency across your web applications.
Visual regression testing plays a critical role in verifying that visual elements of a web page remain consistent after code changes or updates. In this tutorial, we'll guide you through the process of setting up and executing visual regression tests using Playwright, a powerful browser automation tool.
Practice Test Automation: commitquality.com
Twitter: / commitquality

Пікірлер: 22
@taras9513
@taras9513 11 ай бұрын
Thanks, that was really helpful!
@ShivamPandey-mw5zh
@ShivamPandey-mw5zh 11 ай бұрын
This is awesome. Quite helpful!
@CommitQuality
@CommitQuality 11 ай бұрын
Thank you! Glad I can help
@orbita3000
@orbita3000 3 ай бұрын
i need to do visual testing for hundreds of pages, it would be difficult to tailor mask for dynamic content to each page manually. is there any magic generic solution to mask every element that moves on page, to get a stable test?
@filipgajic93
@filipgajic93 Ай бұрын
Hi, can this be implemented on other layers or only at test() ? I'm trying to implement this in a base class where I keep all my functions so I can call it on other pages, not to duplicate in all of the tests but I'm getting Unresolved function or method toHaveScreenshot() -> any idea why and how to resolve this ? Thanks !
@Aslan11123
@Aslan11123 Ай бұрын
I only got masked names from ID 5 to 11, even though I did set fullPage to true.
@user-bb1hx3dj8r
@user-bb1hx3dj8r Ай бұрын
can you show me how to make it popup the localhost page when you run the test?
@maneeshm2427
@maneeshm2427 10 ай бұрын
Nice informative video covering all different scenario's/possibilities. Can you also include how to run the snapshot tests using docker image?
@CommitQuality
@CommitQuality 10 ай бұрын
Yes, great suggestion, I will create a video for this. Thanks :)
@meg6pat
@meg6pat 10 ай бұрын
Also want to mention clip function, then you need specific part of the page which cannot be covered by single locator.
@meg6pat
@meg6pat 10 ай бұрын
Question: what are AI visual comarison tools you would sugest to use? I hate then 1 pixel line is missing from screenshot which leads to several thousands pixel difference.
@Shizostereo
@Shizostereo 10 ай бұрын
Applitools Eyes should do the job
@CommitQuality
@CommitQuality 9 ай бұрын
Browserstacks Percy is good, however there are lots of options available and I would definitely suggest free trials
@muhammadnauman4468
@muhammadnauman4468 6 ай бұрын
Question: I have 3 visual testing test ( one for desktop , tablet and mobile each) that is written in a same file. As i have use your approach while executing e.g project= tablet for tablet test case , project= iphone for mobile test case . how can i run all the test at once. Please advise
@CommitQuality
@CommitQuality 5 ай бұрын
If you have 3 projects and you want to run them all don't specify a project via your execution and that will be default run all projects in your playwright config file
@nameundefinedname5307
@nameundefinedname5307 Жыл бұрын
how do you take screen shots and compare say a test environment with a live environment?
@rajdesai94
@rajdesai94 11 ай бұрын
maybe take both screenshots through navigation to the respective URLs but compare both results to each other's saved screens as well?
@kumarraj989
@kumarraj989 Ай бұрын
Any example with java
@sanjuburkule
@sanjuburkule 10 ай бұрын
If a text is going outside of a button in certain screen sizes, can playright automatically detect it?
@CommitQuality
@CommitQuality 10 ай бұрын
If you have the golden image to compare against then yes it will detect something has changed and highlight the pixels that have changed
@danielstoicamusic
@danielstoicamusic 8 ай бұрын
Unfortunately this becomes way more complicated when running in CI.
@CommitQuality
@CommitQuality 8 ай бұрын
I would suggest looking into containers to keep the implementation simple
Page Object Model in Playwright
29:17
CommitQuality
Рет қаралды 21 М.
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 101 МЛН
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 4,6 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
PLAYWRIGHT ACCESSIBILITY TESTING IN DETAIL
24:24
CommitQuality
Рет қаралды 2,7 М.
Playwright Test Fixtures Made Easy
16:19
CommitQuality
Рет қаралды 10 М.
Contract Testing in Playwright using Zod
8:41
Uncle Aaroh Testing
Рет қаралды 138
Visual Testing, Playwright Testing, Testing Frameworks, oh my!
1:13:09
The Test Automation Experience
Рет қаралды 3,6 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 152 М.
Playwright: Visual testing
9:18
JoanMedia
Рет қаралды 2,5 М.
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 101 МЛН