diff --git a/pages/API/nodes-info/nodes-info-child.uvue b/pages/API/nodes-info/nodes-info-child.uvue new file mode 100755 index 0000000000000000000000000000000000000000..fad48b47bd3b2de2f9bca03dc680486a4a552926 --- /dev/null +++ b/pages/API/nodes-info/nodes-info-child.uvue @@ -0,0 +1,29 @@ + + + + + diff --git a/pages/API/nodes-info/nodes-info.test.js b/pages/API/nodes-info/nodes-info.test.js index d219bfe014ecf6b52ded01df564bba630f5ebd47..e2c61f697303159ca66a5bcb3f210a8799a7a8f0 100644 --- a/pages/API/nodes-info/nodes-info.test.js +++ b/pages/API/nodes-info/nodes-info.test.js @@ -53,6 +53,11 @@ describe('nodes-info', () => { expect(nodeInfo2.top > 220).toBe(true) expect(Math.round(nodeInfo2.width)).toBe(RECT_WIDTH) expect(Math.round(nodeInfo2.height)).toBe(RECT_HEIGHT) + }) + it('get-node-info-child', async () => { + const child = await page.$('.node-child') + const childData = await child.data() + expect(childData.top > 100).toBe(true) }) // #ifdef APP diff --git a/pages/API/nodes-info/nodes-info.uvue b/pages/API/nodes-info/nodes-info.uvue index 47349d2549c08c8ed94cba90cab134148e43be32..fef2a62b10eae8d335da1147bde6950f9073a7a9 100644 --- a/pages/API/nodes-info/nodes-info.uvue +++ b/pages/API/nodes-info/nodes-info.uvue @@ -1,176 +1,182 @@ -