Answer the question
In order to leave comments, you need to log in
How to test the functionality that the EDS plugin uses?
Hello. There is a banking application on react, the application contains various forms, saving changes in which requires a signature from the client. For this, an electronic digital signature plugin is cut, specifically cryptopro, which does most of the work. The plugin spins in the user's browser as an extension, when saving changes in the form, the code feeds the plugin a digest flying from the back, the plugin spits out a signature, which then flies to this back with the changes. All this is accompanied by the appearance of a native modal, where the user must enter the pin to the heap.
Now to the topic of the question, it would be nice to cover this story with e2e tests. We use cypress for this, which in this situation stumbles over 2 points:
1. It is not clear how to install the plugin in a chrome instance, in which the framework clicks everything
2. It is not clear how to interact with native modals and introduce pins into them The
question is, is it really possible to cover this functionality with e2e tests using cypress, and if not, what are the alternatives?
Answer the question
In order to leave comments, you need to log in
I don't understand these words. as well as problems installing the plugin. but I know for sure that when entering a pin, you can put a kryzhik so that it is no longer requested, but the standard pin is 12345678. Well, once upon a time I was taught that if you use something external, you can make a stub for testing that will work instead of it in tests and return the answer needed for the tests. then you don't need to install any plugins or enter a pin.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question