Playwright documentation can be found here: https://playwright.dev/docs/intro Additional documentation can be accessed by querying the brains of your interviewers :)
Your goal is to write a test that goes to "https://google.com/", performs a search for "TeleVet", and validate that there is a result with a link to "https://televet.com/".
There are 3 problems in this project.
- In pages/google.ts, define a selector for the "Google Search" button
- In page/google.ts, define a function that searches for a provided search string
- In tests/googleSearch.spec.ts, write a test that searches for 'TeleVet' and validates that one of the results is 'https://televet.com/'
npm i
npx playwright install
Normal mode: npx playwright test --headed googleSearch
Debug mode: PWDEBUG=1 npx playwright test googleSearch