From cab956031410414672ad4ab205830daf900d38a5 Mon Sep 17 00:00:00 2001
From: zhenyuWang <13641039885@163.com>
Date: Mon, 14 Aug 2023 15:56:05 +0800
Subject: [PATCH] test: remove page hide and show
---
.../get-current-pages.test.js | 6 --
.../get-current-pages/get-current-pages.uvue | 62 +++++++------------
2 files changed, 24 insertions(+), 44 deletions(-)
diff --git a/pages/API/get-current-pages/get-current-pages.test.js b/pages/API/get-current-pages/get-current-pages.test.js
index d0f9d1f3..e7949f2b 100644
--- a/pages/API/get-current-pages/get-current-pages.test.js
+++ b/pages/API/get-current-pages/get-current-pages.test.js
@@ -13,10 +13,4 @@ describe('getCurrentPages', () => {
const data = await page.data()
expect(data.checked).toBe(true)
})
- it('hideAndShow', async () => {
- await page.callMethod('hideAndShow')
- await page.waitFor(1000)
- const data = await page.data()
- expect(data.showTimes).toBe(2)
- })
})
diff --git a/pages/API/get-current-pages/get-current-pages.uvue b/pages/API/get-current-pages/get-current-pages.uvue
index 319ed88d..6873d3a4 100644
--- a/pages/API/get-current-pages/get-current-pages.uvue
+++ b/pages/API/get-current-pages/get-current-pages.uvue
@@ -3,7 +3,6 @@
-
当前页面栈中 {{ pages.length }} 个页面,列表如下:
@@ -18,45 +17,32 @@
--
GitLab