mirror of
https://github.com/status-im/desktop-ui-tests.git
synced 2025-02-10 03:43:23 +00:00
Move init and cleanup methods to base class
This commit is contained in:
parent
11a030323e
commit
fbce275e3c
@ -21,4 +21,12 @@ TestCase {
|
|||||||
|
|
||||||
visible: true
|
visible: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initTestCase() {
|
||||||
|
window.show()
|
||||||
|
}
|
||||||
|
|
||||||
|
function cleanupTestCase() {
|
||||||
|
window.close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,15 +53,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_clickFunctions() {
|
function test_clickFunctions() {
|
||||||
// Verify than signal exists
|
// Verify than signal exists
|
||||||
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")
|
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")
|
||||||
|
@ -72,15 +72,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function test_case_ChooseChatNameModal_height_width() {
|
function test_case_ChooseChatNameModal_height_width() {
|
||||||
|
|
||||||
var genKeyModal = popupComponent.createObject(window)
|
var genKeyModal = popupComponent.createObject(window)
|
||||||
|
@ -26,17 +26,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function test_case1_BeforeGetStartedModal_height_width() {
|
function test_case1_BeforeGetStartedModal_height_width() {
|
||||||
|
|
||||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||||
|
@ -36,14 +36,6 @@ WindowTestCase {
|
|||||||
|
|
||||||
///////
|
///////
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_case1() {
|
function test_case1() {
|
||||||
var propfilePopup = popupComponent.createObject(window)
|
var propfilePopup = popupComponent.createObject(window)
|
||||||
propfilePopup.openPopup(true, "Test user", "Some author", "", "bla bla test it bitch", "Nickname")
|
propfilePopup.openPopup(true, "Test user", "Some author", "", "bla bla test it bitch", "Nickname")
|
||||||
|
@ -41,16 +41,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function test_case1_statusButton_clicked() {
|
function test_case1_statusButton_clicked() {
|
||||||
|
|
||||||
var statusButton = popupComponent.createObject(window)
|
var statusButton = popupComponent.createObject(window)
|
||||||
|
@ -36,16 +36,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function test_case1_statusChatInfoButton_clicked() {
|
function test_case1_statusChatInfoButton_clicked() {
|
||||||
|
|
||||||
var statusChatInfoButton = popupComponent.createObject(window)
|
var statusChatInfoButton = popupComponent.createObject(window)
|
||||||
|
@ -25,14 +25,6 @@ WindowTestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_expand() {
|
function test_expand() {
|
||||||
verify(!expandableItem.expanded)
|
verify(!expandableItem.expanded)
|
||||||
|
|
||||||
|
@ -30,14 +30,6 @@ WindowTestCase {
|
|||||||
subTitle: "Subtitle"
|
subTitle: "Subtitle"
|
||||||
}
|
}
|
||||||
|
|
||||||
function initTestCase() {
|
|
||||||
window.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanupTestCase() {
|
|
||||||
window.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_clickFunctions() {
|
function test_clickFunctions() {
|
||||||
// Verify than signal exists
|
// Verify than signal exists
|
||||||
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")
|
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")
|
||||||
|
@ -8,7 +8,7 @@ DEFINES += PROJECT_PATH=\"$${PWD}\"
|
|||||||
|
|
||||||
#DISTFILES += $$
|
#DISTFILES += $$
|
||||||
|
|
||||||
DISTFILES += $$files("$$PWD/*", true)
|
DISTFILES += $$files("$$PWD/*.qml", true)
|
||||||
|
|
||||||
QML_IMPORT_PATH += status-desktop/ui/StatusQ/src
|
QML_IMPORT_PATH += status-desktop/ui/StatusQ/src
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user