Skip to content

Commit

Permalink
chore:
Browse files Browse the repository at this point in the history
  • Loading branch information
army8735 committed Mar 31, 2024
1 parent 7a83593 commit e8127b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/group2/move-histroy/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ module.exports = {
.moveTo('canvas', 30, 20)
.mouseButtonUp(0)
.execute(() => {
const style = window.root.getCurPage().children[0].style;
const node = window.root.getCurPage().children[0];
const style = node.style;
const input = document.querySelector('input');
input.value = JSON.stringify([style.left, style.right, style.top, style.bottom]);
input.value = JSON.stringify([node.getBoundingClientRect(), style.left, style.right, style.top, style.bottom]);
}, [], () => {
browser
.assert.value('input', '[{"v":10,"u":2},{"v":-110,"u":2},{"v":10,"u":2},{"v":-110,"u":2}]')
Expand Down

0 comments on commit e8127b4

Please sign in to comment.