这是我编写的示例代码。在第一个client.end()之后,我不希望执行“加载成功的条形卡”测试。
module.exports = {
'@tags': ['example'],
before: function(client) {
Login()
},
/* SUMMARY PAGE START */
'dropdown loaded success': function(client) {
var summary = client.page.summary();
summary.DropDownLoaded();
client.end()
},
'bar cards loaded success': function(client) {
var summary = client.page.summary();
summary.CardsVisible();
},
after: function(client) {
client.pause(5000);
client.end();
}
}