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

    newAccount.addAccount(context)
Exemple #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.")
Exemple #3
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.openSyncDialog()
    test.compare(
        waitForObjectExists(newAccount.SELECTIVE_SYNC_DIALOG).visible,
        True,
        "Assert selective sync dialog is visible",
    )
Exemple #4
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addUserCreds(context)
    test.compare(
        waitForObjectExists(newAccount.ADVANCE_SETUP_PAGE).visible,
        True,
        "Assert setup page is visible",
    )
Exemple #5
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
    test.compare(
        waitForObjectExists(newAccount.CREDENTIAL_PAGE).visible,
        True,
        "Assert credentials page is visible",
    )
Exemple #6
0
def step(context):
    newAccount = AccountConnectionWizard()
    test.compare(
        waitForObjectExists(newAccount.SYNC_DIALOG_ROOT_FOLDER).checkState,
        "checked",
        "Assert sync all checkbox is checked",
    )
Exemple #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
Exemple #8
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.connectAccount()
Exemple #9
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.selectManualSyncFolder()
Exemple #10
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.selectFoldersToSync(context)
Exemple #11
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.openSyncDialog()
Exemple #12
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
Exemple #13
0
def step(context, errorMsg):
    newAccount = AccountConnectionWizard()
    test.compare(str(waitForObjectExists(newAccount.ERROR_LABEL).text),
                 errorMsg)
Exemple #14
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addUserCreds(context)
Exemple #15
0
def step(context):
    newAccount = AccountConnectionWizard()
    newAccount.addServer(context)
    newAccount.addUserCreds(context)
    newAccount.selectSyncFolder(context)