提交 d8b5dc8f 编写于 作者: B bayanxing

optimize test cases

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 346eba19
...@@ -57,6 +57,29 @@ describe('aceJsTest', function () { ...@@ -57,6 +57,29 @@ describe('aceJsTest', function () {
await sleep(5000) await sleep(5000)
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testStepperComponent
* @tc.desc ACE
*/
it('testStepperComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/stepper/index'
}
try {
result = router.push(options)
console.info("push stepper page success " + JSON.stringify(result));
} catch (err) {
console.error("push stepper page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.stepper] getState" + JSON.stringify(pages));
expect("pages/stepper/").assertEqual(pages.path);
done();
});
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testButtonComponent * @tc.name testButtonComponent
...@@ -829,29 +852,6 @@ describe('aceJsTest', function () { ...@@ -829,29 +852,6 @@ describe('aceJsTest', function () {
done(); done();
}); });
/**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testStepperComponent
* @tc.desc ACE
*/
it('testStepperComponent', 0, async function (done) {
let result;
let options = {
uri: 'pages/stepper/index'
}
try {
result = router.push(options)
console.info("push stepper page success " + JSON.stringify(result));
} catch (err) {
console.error("push stepper page error " + JSON.stringify(result));
}
await sleep(5000)
let pages = router.getState();
console.info("[router.stepper] getState" + JSON.stringify(pages));
expect("pages/stepper/").assertEqual(pages.path);
done();
});
/** /**
* @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100 * @tc.number SUB_ACE_BASIC_COMPONENT_JS_API_0100
* @tc.name testRefreshComponent * @tc.name testRefreshComponent
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册