CodeceptJS完成后关闭浏览器窗口

时间:2019-11-15 16:22:48

标签: testing automated-tests puppeteer codeceptjs

CodeceptJSPuppeteer的新手。完成后我想让我的窗口浏览器打开。

Feature('Login');

Scenario('test', (I) => {
    I.amOnPage('https://google.es')

});

1 个答案:

答案 0 :(得分:1)

只需将pause()作为测试用例的最后一行

Feature('Login');

Scenario('test', (I) => {
    I.amOnPage('https://google.es')
    pause(); 

});
相关问题