提交 1d2b56d9 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 修复自动化测试应用崩溃问题

上级 342d2018
jest.setTimeout(30000)
const PAGE_PATH = '/pages/API/navigator/new-page/new-page-2' const PAGE_PATH = '/pages/API/navigator/new-page/new-page-2'
const INTERMEDIATE_PAGE_PATH = '/pages/API/navigator/navigator' const INTERMEDIATE_PAGE_PATH = '/pages/API/navigator/navigator'
let page let page
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
onLoad() { onLoad() {
}, },
onUnload() { onUnload() {
if(this.isUniTest){
uni.hideToast()
}
}, },
methods: { methods: {
notify(content : string, title : string) { notify(content : string, title : string) {
......
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
onLoad() { onLoad() {
}, },
onUnload() { onUnload() {
if(this.isUniTest){
uni.hideToast()
}
}, },
methods: { methods: {
notify(content : string, title : string) { notify(content : string, title : string) {
......
...@@ -38,6 +38,11 @@ ...@@ -38,6 +38,11 @@
isUniTest: false isUniTest: false
} }
}, },
onUnload() {
if(this.isUniTest){
uni.hideToast()
}
},
methods: { methods: {
notify(content : string, title : string) { notify(content : string, title : string) {
if (!this.isUniTest) { if (!this.isUniTest) {
......
...@@ -33,7 +33,7 @@ const pages = [ ...@@ -33,7 +33,7 @@ const pages = [
'/pages/component/text/text-props', '/pages/component/text/text-props',
'/pages/component/text/text', '/pages/component/text/text',
'/pages/component/textarea/textarea', '/pages/component/textarea/textarea',
'/pages/component/video/video', // '/pages/component/video/video',
'/pages/component/view/view-draw', '/pages/component/view/view-draw',
'/pages/component/view/view', '/pages/component/view/view',
// '/pages/component/web-view/web-view', // 动态内容 // '/pages/component/web-view/web-view', // 动态内容
...@@ -52,7 +52,7 @@ const pages = [ ...@@ -52,7 +52,7 @@ const pages = [
'/pages/CSS/border/border-top', '/pages/CSS/border/border-top',
'/pages/CSS/border/border-width', '/pages/CSS/border/border-width',
'/pages/CSS/border/border', '/pages/CSS/border/border',
'/pages/CSS/box-shadow/box-shadow', // '/pages/CSS/box-shadow/box-shadow',
'/pages/CSS/display/flex', '/pages/CSS/display/flex',
'/pages/CSS/display/none', '/pages/CSS/display/none',
'/pages/CSS/flex/align-content', '/pages/CSS/flex/align-content',
...@@ -108,7 +108,7 @@ const pages = [ ...@@ -108,7 +108,7 @@ const pages = [
// '/pages/template/calendar/calendar', // 动态内容 // '/pages/template/calendar/calendar', // 动态内容
'/pages/template/custom-refresher/custom-refresher', '/pages/template/custom-refresher/custom-refresher',
'/pages/template/custom-tab-bar/custom-tab-bar', '/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/half-screen/half-screen',
'/pages/template/list-news/list-news', '/pages/template/list-news/list-news',
'/pages/template/list-news/detail/detail', '/pages/template/list-news/detail/detail',
...@@ -119,7 +119,7 @@ const pages = [ ...@@ -119,7 +119,7 @@ const pages = [
'/pages/template/scroll-sticky/scroll-sticky', '/pages/template/scroll-sticky/scroll-sticky',
'/pages/template/swiper-list/swiper-list', '/pages/template/swiper-list/swiper-list',
'/pages/template/swiper-list2/swiper-list2', '/pages/template/swiper-list2/swiper-list2',
'/pages/template/swiper-vertical-video/swiper-vertical-video' // '/pages/template/swiper-vertical-video/swiper-vertical-video'
] ]
let page; let page;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册