Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F109080
D168.1731150427.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
994 B
Referenced Files
None
Subscribers
None
D168.1731150427.diff
View Options
diff --git a/src/tests/quick-tests/tst_ReactToEventPopup.qml b/src/tests/quick-tests/tst_ReactToEventPopup.qml
--- a/src/tests/quick-tests/tst_ReactToEventPopup.qml
+++ b/src/tests/quick-tests/tst_ReactToEventPopup.qml
@@ -6,13 +6,15 @@
import QtQuick
import QtTest
-
+import org.kde.kirigami as Kirigami
import '../../contents/ui' as Kazv
Item {
width: 800
height: 600
Kazv.ReactToEventPopup {
+ height: parent.height
+ width: parent.width
id: popup
}
TestCase {
@@ -23,8 +25,10 @@
popup.open();
const grid = findChild(popup, 'emojiGrid');
waitForRendering(grid);
- mouseClick(grid.currentItem);
- tryVerify(() => findChild(popup, 'reactionTextInput').text === grid.currentItem.str);
+ grid.positionViewAtIndex(0, GridView.Beginning);
+ tryVerify(() => grid.itemAtIndex(0).visible);
+ mouseClick(grid.itemAtIndex(0));
+ tryVerify(() => findChild(popup, 'reactionTextInput').text === '😀');
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 3:07 AM (21 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36711
Default Alt Text
D168.1731150427.diff (994 B)
Attached To
Mode
D168: Make ReactToEventPopupTest more reproducible
Attached
Detach File
Event Timeline
Log In to Comment