Relative Content

Tag Archive for cypress

Clear memory after Cypress test

I have a test in a spec which consumes a lot of memory. This test results browser crash in some of the next test of the spec. E.g. it could be 10th or 11th or any other test. I can solve the issue by reducing the number of tests kept in memory to 0. But this is not perfect solution as in this case DOM snapshots for the tests are lost and time trevel debugging is blocked. Can I clear the memory after this test execution? I know that Cypress clear cookies and storage after each test, but this is about phisical RAM alocated for Cypress where spec tests DOM snapshots are stored

Cypress intercept best practice

I have some tests whereby in different It I intercept some routes and in some functions as well I intercept the same route and I find that there is a lot of duplication of the same thing.