Open unlikelyzero opened 2 years ago
Component testing support was recently added in an alpha version of playwright/test. They've added support for vue2 recently. https://github.com/microsoft/playwright/issues/14143
Here's the guide https://playwright.dev/docs/test-components
We did an initial attempt at a POC and have a branch here: https://github.com/nasa/openmct/tree/vue2-component-testing-poc
FAQ for getting started https://github.com/microsoft/playwright/issues/14298
playwright init
<template> ^ SyntaxError: Unexpected token '<'
Also worth mentioning https://www.cypress.io/blog/2021/04/06/getting-start-with-cypress-component-testing-vue-2-3/
Summary
Component testing support was recently added in an alpha version of playwright/test. They've added support for vue2 recently. https://github.com/microsoft/playwright/issues/14143
Here's the guide https://playwright.dev/docs/test-components
We did an initial attempt at a POC and have a branch here: https://github.com/nasa/openmct/tree/vue2-component-testing-poc
FAQ for getting started https://github.com/microsoft/playwright/issues/14298
Findings:
playwright init
Next steps: