mirror of
https://github.com/status-im/desktop-ui-tests.git
synced 2025-02-05 01:14:30 +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
|
||||
}
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
}
|
||||
|
@ -53,15 +53,6 @@ WindowTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
function test_clickFunctions() {
|
||||
// Verify than signal exists
|
||||
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() {
|
||||
|
||||
var genKeyModal = popupComponent.createObject(window)
|
||||
|
@ -26,17 +26,6 @@ WindowTestCase {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
|
||||
function test_case1_BeforeGetStartedModal_height_width() {
|
||||
|
||||
var beforeGetStartedModal = popupComponent.createObject(window)
|
||||
|
@ -36,14 +36,6 @@ WindowTestCase {
|
||||
|
||||
///////
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
function test_case1() {
|
||||
var propfilePopup = popupComponent.createObject(window)
|
||||
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() {
|
||||
|
||||
var statusButton = popupComponent.createObject(window)
|
||||
|
@ -36,16 +36,6 @@ WindowTestCase {
|
||||
}
|
||||
|
||||
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
|
||||
function test_case1_statusChatInfoButton_clicked() {
|
||||
|
||||
var statusChatInfoButton = popupComponent.createObject(window)
|
||||
|
@ -25,14 +25,6 @@ WindowTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
function test_expand() {
|
||||
verify(!expandableItem.expanded)
|
||||
|
||||
|
@ -30,14 +30,6 @@ WindowTestCase {
|
||||
subTitle: "Subtitle"
|
||||
}
|
||||
|
||||
function initTestCase() {
|
||||
window.show()
|
||||
}
|
||||
|
||||
function cleanupTestCase() {
|
||||
window.close()
|
||||
}
|
||||
|
||||
function test_clickFunctions() {
|
||||
// Verify than signal exists
|
||||
verify(clickedSpy.valid, "Signal " + clickedSpy.signalName + "is not valid")
|
||||
|
@ -8,7 +8,7 @@ DEFINES += PROJECT_PATH=\"$${PWD}\"
|
||||
|
||||
#DISTFILES += $$
|
||||
|
||||
DISTFILES += $$files("$$PWD/*", true)
|
||||
DISTFILES += $$files("$$PWD/*.qml", true)
|
||||
|
||||
QML_IMPORT_PATH += status-desktop/ui/StatusQ/src
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user