Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 651 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 651 Bytes

cypress-playwright

How to use

Simply pass any playwright test name from the playwright folder as a second argument of the task.

cy.task('playwright', 'googleMe')

How this was done

In the example file, the Playwright test is invoked from the Cypress test. This was done using Cypress task plugin event:

 on('task', {
  async playwright(file) {
    const { test } = require(path.resolve(process.cwd(), './playwright/', file))
     return await test()
    },
   })