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 0fba502 commit 04c62d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/group2/move-histroy/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ module.exports = {
.waitForElementVisible('body', 1000)
.pause(20)
.moveTo(null, 100, 100)
.pause(20)
.mouseButtonDown(0)
.pause(20)
.moveTo(null, 120, 110)
.pause(20)
.mouseButtonUp(0)
.pause(20)
.execute(() => {
const style = window.root.getCurPage().children[0].style;
const input = document.querySelector('input');
input.value = JSON.stringify([style.left, style.right, style.top, style.bottom]);
}, [], () => {
browser
.assert.value('input', '')
.assert.value('input', '[{"v":10,"u":2},{"v":-110,"u":2},{"v":10,"u":2},{"v":-110,"u":2}]')
.end();
})
}
Expand Down

0 comments on commit 04c62d7

Please sign in to comment.