A
A
Alexey Nikolaev2020-06-12 17:58:54
Software testing
Alexey Nikolaev, 2020-06-12 17:58:54

Is it possible to lock iframe in cypress?

Good evening.
There is a project on Vue, consisting of several modules. Each module is a separate repo. In one of the modules that connects all parts of the project, e2e tests based on Cypress were written, which cover the functionality of several modules.

What is the essence of the problem: one of the modules must be opened through an iframe (it is designed to be able to dynamically embed it on site pages). And cypress can only mock XHR requests at the moment (opening an iframe is a document type request). If fetch can be hacked by replacing window.fetch with a custom function that actually sends xhr, then I don’t know how to get around the iframe situation.

In general, any suggestions?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question