testing - CodeceptJS 完成后关闭浏览器窗口
问题描述
我是新手CodeceptJS
。Puppeteer
我想让我的窗口浏览器在完成后打开。
Feature('Login');
Scenario('test', (I) => {
I.amOnPage('https://google.es')
});
解决方案
只需将 pause() 作为测试用例的最后一行
Feature('Login');
Scenario('test', (I) => {
I.amOnPage('https://google.es')
pause();
});
推荐阅读
- javascript - 如何在可触摸项目上更新对象数组状态和屏幕样式点击反应原生
- javascript - 什么是反应方式来做到这一点?
- python - Pytest:如何设置我的 pytest 配置(conftest)以在测试环境中运行?
- node.js - 按设备 ID 获取通知 - OneSignal
- python - 如何使用 tkinter 在单击时将按钮从一帧移动到另一帧?
- python-3.x - 使用漂亮的汤从 span 类中解析文本
- css - SCSS 到 CSS 样式表
- postgresql - 如何在顶层登录到 postgreSQL?
- java - 在 Eclipse IDE 中,当我运行任何程序弹出窗口时,显示工作区中的错误和程序中的错误,但成功运行程序操作
- flutter - 如何在 Flutter 中加载地图后立即显示谷歌地图信息窗口?