- 批量修改填写人:添加左侧分类列表、折叠功能、暂存和重新分配 - 审核页面:添加折叠和分页功能 - 查询分析页面:添加单位列显示 - 人员管理:创建独立页面,支持搜索、分页、批量操作 - 修复各种UI和功能问题
24 lines
800 B
JavaScript
24 lines
800 B
JavaScript
/**
|
|
* A basic Nightwatch custom command
|
|
* which demonstrates usage of ES6 async/await instead of using callbacks.
|
|
* The command name is the filename and the exported "command" function is the command.
|
|
*
|
|
* Example usage:
|
|
* browser.openHomepage();
|
|
*
|
|
* For more information on writing custom commands see:
|
|
* https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
|
|
*
|
|
*/
|
|
module.exports = {
|
|
command: async function() {
|
|
// Other Nightwatch commands are available via "this"
|
|
// .init() simply calls .url() command with the value of the "launch_url" setting
|
|
this.init()
|
|
this.waitForElementVisible('#app')
|
|
|
|
const result = await this.elements('css selector', '#app ul')
|
|
this.assert.strictEqual(result.value.length, 3)
|
|
}
|
|
}
|