我一直在尝试使用 ipv6 在 cypress 中运行测试用例。
据我所知,cypress 的行为是,当您在 cy.get()
中提供 IP 或 URL 时,cypress 会创建一个文件,该文件的 IP/URL 名称带有 .pem
扩展名。
但是对于 ipv6,当它尝试使用 ipv6 ip 名称创建 .pem
文件时,Windows 不允许它创建该文件,因为它包含特殊字符“:”。
OperationalError: ENOENT: no such file or directory, open
'C:\Users\ABC\AppData\Roaming\Cypress\cy\production\proxy\certs\2220:123:170:1a7e::4267:2.pem'
{
cause: [Error: ENOENT: no such file or directory,
open 'C:\Users\ABC\AppData\Roaming\Cypress\cy\production\proxy\certs\2220:123:170:1a7e::4267:2.pem'
]
{ errno: -4058, code: 'ENOENT', syscall: 'open',
path: 'C:\\Users\\ABC\\AppData\\Roaming\\Cypress\\cy\\production\\proxy\\certs\\2220:123:170:1a7e::4267:2.pem'
},
isOperational: true, errno: -4058, code: 'ENOENT', syscall: 'open',
path: 'C:\\Users\\ABC\\AppData\\Roaming\\Cypress\\cy\\production\\proxy\\certs\\2220:123:170:1a7e::4267:2.pem'
} Error: ENOENT: no such file or directory,
open 'C:\Users\ABC\AppData\Roaming\Cypress\cy\production\proxy\certs\2220:123:170:1a7e::4267:2.pem'
我有两个问题: