Esempio n. 1
0
def step(context, accountType):
    newAccount = AccountConnectionWizard()
    if accountType == 'another':
        toolbar = Toolbar()
        toolbar.clickAddAccount()

    newAccount.addAccount(context)
Esempio n. 2
0
def step(context, headerText):
    headerText = headerText.capitalize()
    if headerText in ["Size", "Name"]:
        newAccount = AccountConnectionWizard()
        newAccount.sortBy(headerText)
    else:
        raise Exception("Sorting by '" + headerText + "' is not supported.")
Esempio n. 3
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.openSyncDialog()
    test.compare(
        waitForObjectExists(newAccount.SELECTIVE_SYNC_DIALOG).visible,
        True,
        "Assert selective sync dialog is visible",
    )
Esempio n. 4
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addUserCreds(context)
    test.compare(
        waitForObjectExists(newAccount.ADVANCE_SETUP_PAGE).visible,
        True,
        "Assert setup page is visible",
    )
Esempio n. 5
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
    test.compare(
        waitForObjectExists(newAccount.CREDENTIAL_PAGE).visible,
        True,
        "Assert credentials page is visible",
    )
Esempio n. 6
0
def step(context):
    newAccount = AccountConnectionWizard()
    test.compare(
        waitForObjectExists(newAccount.SYNC_DIALOG_ROOT_FOLDER).checkState,
        "checked",
        "Assert sync all checkbox is checked",
    )
Esempio n. 7
0
def step(context):
    newAccount = AccountConnectionWizard()
    rowIndex = 0
    for row in context.table[1:]:
        FOLDER_TREE_ROW = {
            "row": rowIndex,
            "container": newAccount.SYNC_DIALOG_ROOT_FOLDER,
            "type": "QModelIndex",
        }
        expectedFolder = row[0]
        actualFolder = waitForObjectExists(FOLDER_TREE_ROW).displayText
        test.compare(actualFolder, expectedFolder)

        rowIndex += 1
Esempio n. 8
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.connectAccount()
Esempio n. 9
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.selectManualSyncFolder()
Esempio n. 10
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.selectFoldersToSync(context)
Esempio n. 11
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.openSyncDialog()
Esempio n. 12
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
Esempio n. 13
0
def step(context, errorMsg):
    newAccount = AccountConnectionWizard()
    test.compare(str(waitForObjectExists(newAccount.ERROR_LABEL).text),
                 errorMsg)
Esempio n. 14
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addUserCreds(context)
Esempio n. 15
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
    newAccount.addUserCreds(context)
    newAccount.selectSyncFolder(context)