@@ -66,6 +66,25 @@ Rectangle {
6666 // Exercise the purchaseCompleted signal here.
6767 previewPayments.widgetData = jsonPurchase;
6868
69+ var button = findChild(root, "paymentButton");
70+ verify(button != null, "Button not found.");
71+ var progress = findChild(root, "loadingBar");
72+ verify(progress != null, "ProgressBar not found.");
73+
74+ mouseClick(button, button.width / 2, button.height / 2);
75+
76+ spy.wait();
77+
78+ verify(progress.visible == true, "ProgressBar not visible.");
79+ verify(progress.opacity == 1, "ProgressBar wrong opacity.");
80+ verify(button.visible == false, "Button visible.");
81+ verify(button.opacity == 0, "Button wrong opacity.");
82+ }
83+
84+ function test_progress_show() {
85+ // Make sure the progress bar is shown.
86+ previewPayments.widgetData = jsonPurchase;
87+
6988 var button = findChild(root, "paymentButton");
7089 verify(button != null, "Button not found.");
7190