Skip to content

Trying to load and bootstrap Angular component dynamically inside Cypress

Notifications You must be signed in to change notification settings

simonkp/cypress-angular-unit-test

 
 

Repository files navigation

BETA Build Status renovate-app badge

If you run $(npm bin)/cypress open and click on "spec.ts" it does not show any errors, meaning a component has been bootstrapped. Not the HTML looks very weird and nothing is running. I assume the Angular code is running in the spec iframe and cannot cross into the app iframe where the component has been mounted.

Some HTML but no action

See cypress/integration/spec.ts for mounting code.

Working

I have successfully used this mounting approach to test components in other frameworks.

About

Trying to load and bootstrap Angular component dynamically inside Cypress

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 63.6%
  • JavaScript 26.5%
  • HTML 9.4%
  • CSS 0.5%