@@ -9,18 +9,12 @@ import org.bitcoincore.qt 1.0
99import "../../qml/pages/wallet"
1010
1111TestCase {
12+ id: testCase
1213 name: " Send"
1314 when: windowShown
1415 width: 900
1516 height: 700
1617
17- Window {
18- id: testWindow
19- width: 900
20- height: 700
21- visible: true
22- }
23-
2418 Component {
2519 id: sendComponent
2620
@@ -54,10 +48,10 @@ TestCase {
5448 }
5549
5650 function test_review_only_psbt_closes_and_discards_on_wallet_change () {
57- const page = createTemporaryObject (sendComponent, testWindow .contentItem )
51+ const page = createTemporaryObject (sendComponent, testCase . Window . window .contentItem )
5852 verify (page !== null )
59- page .width = testWindow .width
60- page .height = testWindow .height
53+ page .width = testCase .width
54+ page .height = testCase .height
6155 page .visible = true
6256
6357 const popup = findChild (page, " reviewOnlyPsbtPopup" )
@@ -78,10 +72,10 @@ TestCase {
7872 }
7973
8074 function test_successful_psbt_broadcast_shows_confirmation () {
81- const page = createTemporaryObject (sendComponent, testWindow .contentItem )
75+ const page = createTemporaryObject (sendComponent, testCase . Window . window .contentItem )
8276 verify (page !== null )
83- page .width = testWindow .width
84- page .height = testWindow .height
77+ page .width = testCase .width
78+ page .height = testCase .height
8579 page .visible = true
8680
8781 const reviewPopup = findChild (page, " reviewOnlyPsbtPopup" )
@@ -133,10 +127,10 @@ TestCase {
133127 }
134128
135129 function test_send_multiple_recipient_layout_and_total_follow_state () {
136- const page = createTemporaryObject (sendComponent, testWindow .contentItem )
130+ const page = createTemporaryObject (sendComponent, testCase . Window . window .contentItem )
137131 verify (page !== null )
138- page .width = testWindow .width
139- page .height = testWindow .height
132+ page .width = testCase .width
133+ page .height = testCase .height
140134 page .visible = true
141135
142136 const optionsPopup = findChild (page, " sendOptionsPopup" )
0 commit comments