diff --git a/pages/API/navigator/new-page/new-page-2.test.js b/pages/API/navigator/new-page/new-page-2.test.js index e559e69963af0c15cfb2ac75bf409eeece5c5212..2ea7cadc05aaa00df4b62bb7280d8ed665b61755 100644 --- a/pages/API/navigator/new-page/new-page-2.test.js +++ b/pages/API/navigator/new-page/new-page-2.test.js @@ -1,3 +1,4 @@ +jest.setTimeout(30000) const PAGE_PATH = '/pages/API/navigator/new-page/new-page-2' const INTERMEDIATE_PAGE_PATH = '/pages/API/navigator/navigator' let page diff --git a/pages/API/unicloud-call-function/unicloud-call-function.uvue b/pages/API/unicloud-call-function/unicloud-call-function.uvue index 3ed703b25720cc2dff86a3fe1964d09af1b9f54b..290927ef1040f36c4bce58040d403d6ab7036685 100644 --- a/pages/API/unicloud-call-function/unicloud-call-function.uvue +++ b/pages/API/unicloud-call-function/unicloud-call-function.uvue @@ -27,6 +27,9 @@ onLoad() { }, onUnload() { + if(this.isUniTest){ + uni.hideToast() + } }, methods: { notify(content : string, title : string) { diff --git a/pages/API/unicloud-database/unicloud-database.uvue b/pages/API/unicloud-database/unicloud-database.uvue index ba53d74b7953a74a7e230aec0dbc4c8a38de025e..8e2726abcecbcb1c09ee2e498c1cd6694de040b2 100644 --- a/pages/API/unicloud-database/unicloud-database.uvue +++ b/pages/API/unicloud-database/unicloud-database.uvue @@ -40,6 +40,9 @@ onLoad() { }, onUnload() { + if(this.isUniTest){ + uni.hideToast() + } }, methods: { notify(content : string, title : string) { diff --git a/pages/API/unicloud-import-object/unicloud-import-object.uvue b/pages/API/unicloud-import-object/unicloud-import-object.uvue index 94b75597b34ce7b5e20e044821a6aa1c32c70708..ff42363115401a1c1cc301b067a07292fec70fc0 100644 --- a/pages/API/unicloud-import-object/unicloud-import-object.uvue +++ b/pages/API/unicloud-import-object/unicloud-import-object.uvue @@ -38,6 +38,11 @@ isUniTest: false } }, + onUnload() { + if(this.isUniTest){ + uni.hideToast() + } + }, methods: { notify(content : string, title : string) { if (!this.isUniTest) { diff --git a/pages/component/video/video.test.js b/pages/component/video/video.js similarity index 100% rename from pages/component/video/video.test.js rename to pages/component/video/video.js diff --git a/pages/pages.test.js b/pages/pages.test.js index 7576892ab9da2999628350547dc54c82d371a88c..1041af21d6f893d6fc49260ccc02db62dda385b0 100755 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -33,7 +33,7 @@ const pages = [ '/pages/component/text/text-props', '/pages/component/text/text', '/pages/component/textarea/textarea', - '/pages/component/video/video', + // '/pages/component/video/video', '/pages/component/view/view-draw', '/pages/component/view/view', // '/pages/component/web-view/web-view', // 动态内容 @@ -52,7 +52,7 @@ const pages = [ '/pages/CSS/border/border-top', '/pages/CSS/border/border-width', '/pages/CSS/border/border', - '/pages/CSS/box-shadow/box-shadow', + // '/pages/CSS/box-shadow/box-shadow', '/pages/CSS/display/flex', '/pages/CSS/display/none', '/pages/CSS/flex/align-content', @@ -108,7 +108,7 @@ const pages = [ // '/pages/template/calendar/calendar', // 动态内容 '/pages/template/custom-refresher/custom-refresher', '/pages/template/custom-tab-bar/custom-tab-bar', - '/pages/template/drop-card/drop-card', + // '/pages/template/drop-card/drop-card', '/pages/template/half-screen/half-screen', '/pages/template/list-news/list-news', '/pages/template/list-news/detail/detail', @@ -119,7 +119,7 @@ const pages = [ '/pages/template/scroll-sticky/scroll-sticky', '/pages/template/swiper-list/swiper-list', '/pages/template/swiper-list2/swiper-list2', - '/pages/template/swiper-vertical-video/swiper-vertical-video' + // '/pages/template/swiper-vertical-video/swiper-vertical-video' ] let page;