Changeset View
Changeset View
Standalone View
Standalone View
src/tests/quick-tests/tst_ReactToEventPopup.qml
| Show All 17 Lines | Item { | ||||
| TestCase { | TestCase { | ||||
| id: reactToEventPopupTest | id: reactToEventPopupTest | ||||
| name: 'ReactToEventPopupTest' | name: 'ReactToEventPopupTest' | ||||
| when: windowShown | when: windowShown | ||||
| function test_react() { | function test_react() { | ||||
| popup.open(); | popup.open(); | ||||
| const grid = findChild(popup, 'emojiGrid'); | const grid = findChild(popup, 'emojiGrid'); | ||||
| waitForRendering(grid); | waitForRendering(grid); | ||||
| mouseClick(grid.currentItem); | tryVerify(() => grid.itemAtIndex(0).visible); | ||||
| tryVerify(() => findChild(popup, 'reactionTextInput').text === grid.currentItem.str); | mouseClick(grid.itemAtIndex(0)); | ||||
| tryVerify(() => findChild(popup, 'reactionTextInput').text === '😀'); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||