From 9140a46cfa4d02c425d64db64b55895f99f0367f Mon Sep 17 00:00:00 2001 From: taohebin Date: Wed, 19 Jun 2024 12:07:22 +0800 Subject: [PATCH] =?UTF-8?q?test:=20overflow:visible=20=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../overflow/overflow-visible-event.test.js | 13 +++++ .../CSS/overflow/overflow-visible-event.uvue | 56 ++++++++++++++++--- 2 files changed, 61 insertions(+), 8 deletions(-) diff --git a/pages/CSS/overflow/overflow-visible-event.test.js b/pages/CSS/overflow/overflow-visible-event.test.js index 896671b3..3d7af0ee 100644 --- a/pages/CSS/overflow/overflow-visible-event.test.js +++ b/pages/CSS/overflow/overflow-visible-event.test.js @@ -18,6 +18,8 @@ describe('/pages/CSS/overflow/overflow-visible-event.uvue', () => { beforeEach(async () => { await page.setData({ jest_result: false, + jest_click_x: -1, + jest_click_y: -1 }) }); @@ -49,4 +51,15 @@ describe('/pages/CSS/overflow/overflow-visible-event.uvue', () => { console.log("diff", diff); expect(diff).toBe(true) }) + + it('Check Overflow Visible Block View Click', async () => { + await page.callMethod('jest_getAbsoluteViewRect') + const point_x = await page.data('jest_click_x'); + const point_y = await page.data('jest_click_y'); + console.log("input tap" + " " + point_x + " " + point_y); + await program.adbCommand("input tap" + " " + point_x + " " + point_y) + await page.waitFor(500); + res = await page.data('jest_result'); + expect(res).toBe(true) + }) }); diff --git a/pages/CSS/overflow/overflow-visible-event.uvue b/pages/CSS/overflow/overflow-visible-event.uvue index 3a52cfe7..5ae85d83 100644 --- a/pages/CSS/overflow/overflow-visible-event.uvue +++ b/pages/CSS/overflow/overflow-visible-event.uvue @@ -1,15 +1,35 @@