diff --git a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js index a385176aa4d87c7598520bbe5f300b7aebd17386..6118164d5d49b50feda3ad464b7db07b552f800b 100644 --- a/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js +++ b/ace/ace_standard/src/main/js/default/test/commonComponentJsApi.test.js @@ -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