diff --git a/pages/CSS/layout/z-index.test.js b/pages/CSS/layout/z-index.test.js new file mode 100644 index 0000000000000000000000000000000000000000..7f1660dbe7f1c45094d3938b46cc5fb403c225ed --- /dev/null +++ b/pages/CSS/layout/z-index.test.js @@ -0,0 +1,21 @@ +describe('css-z-index', () => { + let page; + beforeAll(async () => { + page = await program.reLaunch('/pages/CSS/layout/z-index'); + }); + + it('test crash', async () => { + if (process.env.uniTestPlatformInfo.startsWith('android')) { + await page.setData({ + autoTest: true + }); + const elements = await page.$$('view'); + expect(elements.length).toBeGreaterThan(0); + await page.setData({ + autoTest: false + }); + } else { + expect(1).toBe(1); + } + }); +}); diff --git a/pages/CSS/layout/z-index.uvue b/pages/CSS/layout/z-index.uvue index 19e4df9e08d1d9e6b3a9a433d9beca2b74d8c992..0a7e634ee4800a0dc3652a907408f1c72ea2ed6f 100644 --- a/pages/CSS/layout/z-index.uvue +++ b/pages/CSS/layout/z-index.uvue @@ -36,13 +36,19 @@ + + 111 + 222 +