我们希望在父窗口中找到全局Cypress,但它丢失了!柏树误差

我们希望在父窗口中找到全局Cypress,但它丢失了!柏树误差,cypress,Cypress,我得到这个错误: document.domain = 'myappdomain.com'; var Cypress = window.Cypress = parent.Cypress; if (!Cypress) { throw new Error('Something went terribly wrong and we cannot proceed. We expected to find the global Cypress in the parent window but it is

我得到这个错误:

document.domain = 'myappdomain.com'; 
var Cypress = window.Cypress = parent.Cypress; 
if (!Cypress) { throw new Error('Something went terribly wrong and we cannot proceed. We expected to find the global Cypress in the parent window but it is missing!. This should never happen and likely is a bug. Please open an issue!'); }; 
Cypress.action('app:window:before:load', window);
我不知道是什么原因导致了这个错误,以前也是这样,我不知道我们的react app+cypress 3.4.1中发生了什么变化,我们使用okta for oauth,请建议如何调试和修复这个问题


附加的cypress日志用于Github中的相同问题[

我遇到了相同的问题。我通过在chrome developer tools(chrome dev tools->application->Clear storage->按下“Clear site data”(清除站点数据)按钮来解决它。
我希望它也能对你有所帮助。

我也遇到了同样的问题。我通过在chrome开发者工具中清除应用程序数据(chrome开发者工具->应用程序->清除存储->按下“清除站点数据”按钮)解决了这个问题。 我希望它也能帮助你