diff --git a/pages/component/sticky-header/sticky-header.test.js b/pages/component/sticky-header/sticky-header.test.js new file mode 100644 index 0000000000000000000000000000000000000000..acb70904fe472bddd75862b34bf99feab7b95bc0 --- /dev/null +++ b/pages/component/sticky-header/sticky-header.test.js @@ -0,0 +1,16 @@ +describe('component-native-sticky-header', () => { + let page + beforeAll(async () => { + //打开list-view测试页 + page = await program.reLaunch('/pages/component/sticky-header/sticky-header') + await page.waitFor(200) + }) + + //检测吸顶效果 + it('check_sticky_header', async () => { + await page.callMethod('confirm_scroll_top_input', 600) + await page.waitFor(400) + const image = await program.screenshot(); + expect(image).toMatchImageSnapshot(); + }) +}) diff --git a/pages/component/sticky-header/sticky-header.uvue b/pages/component/sticky-header/sticky-header.uvue index 2568e981615ab78ecd9b82763ea78e24be4172c6..afa9fc671cabcf8e4cf6ab84e29f6c654d4f2719 100644 --- a/pages/component/sticky-header/sticky-header.uvue +++ b/pages/component/sticky-header/sticky-header.uvue @@ -1,5 +1,5 @@