我已经使用茉莉花框架创建了量角器测试。
describe('title of the suite', () => {
logger.info('Test Suite: tsc.signUp page');
it('test description', async () => {
logger.info('Executing: sample_test');
await browser.get('https://angularjs.org/');
const currentUrl = await browser.getCurrentUrl();
logger.info('URL: ', currentUrl);
expect(await browser.getTitle()).toEqual('AngularJS — Superheroic JavaScript MVW Framework');
});
});
但是,编辑器显示错误为: Lint]:2处的参数无效:无法从bool转换为Function.prototype