예제 #1
0
파일: steps.py 프로젝트: 05259/client
def step(context, accountType):
    newAccount = AccountConnectionWizard()
    if accountType == 'another':
        toolbar = Toolbar()
        toolbar.clickAddAccount()

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