Playwright Beginner Tutorial 12 | Annotation & Tags
Automation Step by Step
@raghavpalAbout
Simple Basic Beginners Step-by-Step tutorials ❤️ I create videos on Automation, Testing, DevOps, CI and related tools, technologies and platform Raghav is a teacher and founder of AutomationStepByStep.com He was an Automation Architect and has led multiple teams of Automation and DevOps Engineers. For over a decade, Raghav witnessed, worked, and delivered multiple Automation Testing Projects and worked with some awesome people in this industry ► https://automationstepbystep.com/ Some topics covered: - Jenkins - JMeter - Selenium - Appium - Cypress - Playwright - Katalon Studio - API Testing - Postman - Docker - Kubernetes - Other DevOps topics Words from Raghav We often need someone to hold our hand and help us take the first few steps before we learn to walk and run. I am on a mission to spread education and make it available to anyone willing to learn Never Stop Learning Raghav All education here is FREE FOR ALL, FOREVER Share with as many people as you can in your lifetime
Video Description
*ALL FREE COURSES* ► https://automationstepbystep.com/ *ASK RAGHAV* ► https://bit.ly/2CoJGWf 00:00 *Intro* 00:32 *What are Annotations & Tags* How to use Annotations & Tags in Playwright Step by Step hands-on demo Hooks: beforeAll beforeEach afterAll afterEach Groups: describe Annotations: only skip skip with condition fail fixme slow Tags: @smoke @reg 03:09 *will skip the test* test.skip('skip this test', async ({ page }) => { // This test will be skipped }); 05:20 *will mark test as failure* will show error if the test does not fail test('not yet ready', async ({ page }) => { test.fail(); }); 06:39 *test will be aborted* test.fixme('test to be fixed', async ({ page }) => { }); 07:36 *marks the test as slow and triples the test timeout* test('slow test', async ({ page }) => { test.slow(); }); 08:21 *runs specific tests* test.only('focus this test', async ({ page }) => { // Run only focused tests in the entire project }); 10:28 *Tags* You can tag your tests with tags like @smoke @sanity @fast @slow and only run the tests that have the certain tag test('Test full report @smoke, async ({ page }) => { // ... }); npx playwright test --grep “@smoke” Opposite of grep Skip tests with certain tag npx playwright test --grep-invert “@smoke” 13:54 *What are Annotations* Annotations are keywords that contain some logical or conditional functionalities Can be used with test blocks to control execution of tests as needed E.g. only, fail, fix, slow We can apply annotations to a single test or a set of tests STORIES BY RAGHAV ► https://automationstepbystep.com/stories/ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 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
Must-Have Slime Essentials
AI-recommended products based on this video

Pink Unicorn Carrying Case Compatible with Nintendo Switch Lite with Crystal Glitter Soft Protective Case Cover+Screen Protector+Stickers, Hard Storage Case Accessories Kit for Girls Birthday Gift

Getfitsoo Pack of 4 Colorful Luggage Tags Plastic PVC Travel Tags Suitcase Labels Business Card Holder (ZU-892K)

4 Pack LCD Writing Tablet for Kids, 8.5 Inch Colorful Doodle Board Drawing Tablet, Educational Learning Toys Birthday Gifts for Boys Girls Age 3 4 5 6 7 8

HQCME 9 Pack Lined Sticky Notes, 4X6 in, 9 Pastel Colors Large Ruled Stickies Colorful Super Sticking Power Memo Pads Strong Adhesive, Sticky Notes with Lines for Home, Office

Purple Ladybug Decorate Your Own Water Bottle for Kids Craft Kits - DIY Unicorn Girls Gifts 8-12 Years Old, Arts and Crafts for Girls Age 8-10 - Fun Travel Activities for Kids

Sunrad Foil Art Kit for Kids Unicorns & Princesses Arts and Crafts, No Mess Art for Kids, Fun Craft Kits & Supplies, DIY Creative Activities, Travel Toys Gifts for Girls & Boys Ages 4 5 6 7 8 9+

Windshield Repair kit, DIY Glass Cracked Repair Kits, Easy to Use Automotive Glass Nano Repair Fluid, Scratch Chip Cracks Repair Kit (2 Pack) (Black)




















