如何解决Cypress + Headless Electron:CoreText 警告
我最近迁移到 macOS 版本 Catalina,使用 Cypress 版本 7.4.0 测试运行,并安装了浏览器 Electron v13.0.1。
如果使用浏览器 Electron 的无头测试运行器在命令行中按如下方式启动,测试确实运行正常,但 Cypress Helper 启动并显示以下警告:
cypress run --browser electron --headless
Cypress Helper (Renderer)[28020:1581833] CoreText note:
Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
Cypress Helper (Renderer)[28020:1581833] CoreText note:
Client requested name ".AppleSymbolsFB",it will get
Times-Roman rather than the intended font. All system UI
font access should be through proper APIs such as
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
如果无头浏览器是 Chrome,则不会生成此警告。
cypress run --browser chrome --headless
解决此警告问题的建议?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。