Playwright Beginner Tutorial 4 | How to write 1st Test

▬ ALL FREE COURSES ► ▬ QUIZ - 00:00 Intro 00:46 Step 1 - Create a new file under test folder 02:15 Step 2 - Add module ‘playwright/test’ const { test, expect } = require(’@playwright/test’); 05:35 Example how to add and import modules 12:48 Playwright Test provides a test function to declare tests and expect function to write assertions 13:10 Step 3 - Create a test block - test(title, testFunction) test(’My First Test’, async ({page}) => { await (’’); await expect(page).toHaveTitle(’Google’); }) 17:20 The keyword async before a function makes the function return a promise The keyword await before a function makes the function wait for a promise 24:14 Screenshot moment ... #RaghavPal #playwright_how_to_write_test #test_syntax_in_playwright #playwright_tutorial_for_complete_beginners #playwright_step_by_step_from_scratch #playwright_by_Krishna #playwright_assertions_demo #playwright_automation_framework_hands-on 20220901 wuWLpsRwB5o
Back to Top