diff --git a/pages/CSS/overflow/overflow-visible-event.test.js b/pages/CSS/overflow/overflow-visible-event.test.js index 896671b30cc1505680dbb669ae653aeb5c40d635..3d7af0ee8dd5a950ba2e9df58f3a8a63ce669063 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 3a52cfe76d02464921bc3f8ecb0b792cadb509f9..5ae85d83be696e1a9818b201d5670fc30072e563 100644 --- a/pages/CSS/overflow/overflow-visible-event.uvue +++ b/pages/CSS/overflow/overflow-visible-event.uvue @@ -1,15 +1,35 @@