Skip to content

vladlearns/cypress-playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
    },
   })

Releases

No releases published

Packages

No packages published