提交 b6592279 编写于 作者: B bayanxing

修改测试用例

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 8be9537d
......@@ -174,27 +174,27 @@ describe('aceJsTest', function () {
done();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
// * @tc.name testLabelComponent
// * @tc.desc ACE
// */
// it('testLabelComponent', 0, async function (done) {
// console.info('testLabelComponent START');
// let result;
// let options = {
// uri: 'pages/label/index'
// }
// try {
// result = router.push(options)
// } catch (err) {
// result = err
// }
// await sleep(1000)
// let pages = router.getState();
// expect("pages/label/").assertEqual(pages.path);
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0400
* @tc.name testLabelComponent
* @tc.desc ACE
*/
it('testLabelComponent', 0, async function (done) {
console.info('testLabelComponent START');
let result;
let options = {
uri: 'pages/label/index'
}
try {
result = router.push(options)
} catch (err) {
result = err
}
await sleep(1000)
let pages = router.getState();
expect("pages/label/").assertEqual(pages.path);
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
......@@ -448,26 +448,26 @@ describe('aceJsTest', function () {
done();
});
// /**
// * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
// * @tc.name testPickerViewComponent
// * @tc.desc ACE
// */
// it('testPickerViewComponent', 0, async function (done) {
// let result;
// let options = {
// uri: 'pages/pickerView/index'
// }
// try {
// result = router.push(options)
// } catch (err) {
// result = err
// }
// await sleep(1000)
// let pages = router.getState();
// expect("pages/pickerView/").assertEqual(pages.path);
// done();
// });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testPickerViewComponent
* @tc.desc ACE
*/
it('testPickerViewComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/pickerView/index'
}
try {
result = router.push(options)
} catch (err) {
result = err
}
await sleep(1000)
let pages = router.getState();
expect("pages/pickerView/").assertEqual(pages.path);
done();
});
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册