有一种方法可以避免为可靠状态启用“安全编码” ...`警告节点脚本吗? 我使用node.js和cypress编写一些自动测试,而且由于我有很多,所以我想将它们分组为他们自己的文件。我已经开始这样做,例如: // myScripts/

问题描述 投票:0回答:1

Error Output: DevTools listening on ws://127.ip.address/devtools/browser/<some hash> 2025-02-19 10:18:07.287 Cypress[18578:4259699] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSup

我知道这与Mac Sonoma OS有关。 我只是好奇:使用node.js有什么作品?
	
我会使用

模块API


您可以从测试中的应用程序中需要柏树作为节点模块,并通过node.js.

运行柏树。

这意味着您不需要

execa()
javascript node.js macos cypress macos-sonoma
1个回答
0
投票
在此模式下,所有您的CLI选项都可以作为

options提供,例如 //myscripts/prodPageTests.js const cypress = require('cypress') cypress.run({ browser: 'chrome', headless: true, spec: './cypress/e2e/LoremProdPage.feature' }) .then((results) => { console.log(`Results:\n${results}`); }) .catch((err) => { console.error(`Error executing command: ${error}`); })

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.