From d8b5dc8f429790301c1549ca137d5e00b014c9e9 Mon Sep 17 00:00:00 2001 From: bayanxing Date: Thu, 17 Feb 2022 21:21:31 +0800 Subject: [PATCH] optimize test cases Signed-off-by: bayanxing --- .../default/test/commonComponentJsApi.test.js | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) 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 58da3e3f0..be854384b 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 @@ -57,6 +57,29 @@ describe('aceJsTest', function () { 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.name testButtonComponent @@ -829,29 +852,6 @@ describe('aceJsTest', function () { 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.name testRefreshComponent -- GitLab