Closed kunalashar25 closed 2 years ago
Interesting. Can you share what is inside the removeAutomationData()
function? The error seems to be pointing to a .should()
assertion that trying to access an object attribute, but cannot find it. from the looks of it it seems like some kind of missing reference, but it’s hard to tell honestly
@filiphric I tried again it seems to be working today, not sure why I ran into an error before. Can mark this as closed for now.
Hi,
I'm having the following file structure
hooks.js
contains global hooks. Example:e2e.js
containsWhen functions
removeAutomationData()
internally makescy.api()
request. I'm seeing the following error:Note: If hooks are present directly inside
*.cy.ts
files then there is no issue in execution.