Skip to content

Trying to load and bootstrap Angular component dynamically inside Cypress

Notifications You must be signed in to change notification settings

meDavid/cypress-angular-unit-test

 
 

Repository files navigation

NOT WORKING YET Build Status

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 55.3%
  • JavaScript 33.2%
  • HTML 10.9%
  • CSS 0.6%