bahmutov / cypress-angular-unit-test

Trying to load and bootstrap Angular component dynamically inside Cypress
158 stars 32 forks source link

Cannot run all component tests #151

Closed azaeng04 closed 4 years ago

azaeng04 commented 4 years ago

2020-07-16_19h28_36

LeJeanbono commented 4 years ago

Hi @azaeng04 , Can you provide us your component test ? Something we can reproduce ? Which Angular version also. Thanks

azaeng04 commented 4 years ago

Hi @LeJeanbono

Here is the repo where I pushed the code up to: https://gitlab.com/azaeng04/angular-test

Hopefully this helps.

LeJeanbono commented 4 years ago

I just push an Angular 9 example at https://github.com/bahmutov/cypress-angular-unit-test/tree/master/examples/ng9 Take a look and I will try your repo

azaeng04 commented 4 years ago

Thanks @LeJeanbono I see your example only tests 1 component whereas the example I am sharing tests more than 1 component and I click the Run all specs link on the Cypress runner

azaeng04 commented 4 years ago

@LeJeanbono just running your example and I am not sure if you ran it, but I ran nox cypress open and clicked Run all specs and it only ran the integration tests. Also I noticed that you do have the experimentalComponentTests option enabled as well.

LeJeanbono commented 4 years ago

Ok got it ! It's more like a cypress problème/question, you can open an issue in their repository ( found nothing on that ) Maybe a new button is needed, dunno. By the way, with cypress run all ( integration / component ) tests are executed

azaeng04 commented 4 years ago

@LeJeanbono okay it is on the Cypress UI.

LeJeanbono commented 4 years ago

Fell free to open an issue in their repo !