https://cypress.io logo
.get(@something) fails and shows a call to .closes...
# i-need-help
s
I just tried upgrading from 10.11.0 to 12.5.1. A lot of tests are failing and I'm trying to figure out why. One case I'm debugging is fetching a value stored with
.as('updatedTotal')
using
cy.get('@updatedTotal')
. I'm getting a failure, but the Cypress runner shows some misleading results. The stack trace highlights the .get line, but the error mentions .closest being called.... What could cause this?
The call to .get was inside of .within so I tried inverting this. Still fails. I'm wondering if the getting of the initial value to be stored as updatedTotal is the one that fails. Since that value is retrieved using .closeset...
Ah maybe this requires the new
{type: static}
option
Resolved my own issue, should have read the migration guide more carefully