Tag: backstop.js

如何增加页面加载的goto超时?

TL;博士; 我需要增加这个超时: 命令| 命令`test`在[32.585s]之后以错误结束 命令| BackstopExcpetion:未定义的testing#1:GotoTimeoutError:goto()超时 考虑以下服务器代码: const http = require('http'); const hostname = '0.0.0.0'; const port = 3000; http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/html'); res.end(`<!DOCTYPE html> <title>Test Page</title> <script>console.log("Hello world!")</script> <h1>Hello world!</h1> `); }).listen(port, hostname, () => { console.log(`Server running at http://${hostname}:${port}/`); }); 和4 * 3 = 12testing的BackstopJSconfiguration: { "id": "backstop_default", […]