启用赛普拉斯 IPv6 支持

时间:2021-03-30 08:49:53

标签: javascript automation automated-tests cypress

我一直在尝试使用 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'

我有两个问题:

  1. cypress 是否支持 IPv6
  2. 如果是,如何启用它以创建 .pem 文件或是否有解决此问题的方法。

0 个答案:

没有答案