Is it possible to mock a component for an e2e test? #621
Unanswered
Adrianocesar23
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to test my app, I have buttons that do certain actions like exporting and others.
In my application I have a component that receives tokens and some other inputs and then it does "it's magic" doing several calls to it's backend that I do not control(powerbi)l.
I need this component to be a "dumb" component that is just there present while I test what my application is doing without having the need to leave any tokens or secrets under source control just for the application to be able to run and have to make real requests to powerbi.
I was reading about the experimental components and this seems to be something like I need but it's not available for angular and I am not sure if it would allow to do what I intend. In a way I would like to have a testbed where I could just replace the real component with the mock component.
Beta Was this translation helpful? Give feedback.
All reactions