def step(context, accountType): newAccount = AccountConnectionWizard() if accountType == 'another': toolbar = Toolbar() toolbar.clickAddAccount() newAccount.addAccount(context)
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.")
def step(context): newAccount = AccountConnectionWizard() newAccount.openSyncDialog() test.compare( waitForObjectExists(newAccount.SELECTIVE_SYNC_DIALOG).visible, True, "Assert selective sync dialog is visible", )
def step(context): newAccount = AccountConnectionWizard() newAccount.addUserCreds(context) test.compare( waitForObjectExists(newAccount.ADVANCE_SETUP_PAGE).visible, True, "Assert setup page is visible", )
def step(context): newAccount = AccountConnectionWizard() newAccount.addServer(context) test.compare( waitForObjectExists(newAccount.CREDENTIAL_PAGE).visible, True, "Assert credentials page is visible", )
def step(context): newAccount = AccountConnectionWizard() test.compare( waitForObjectExists(newAccount.SYNC_DIALOG_ROOT_FOLDER).checkState, "checked", "Assert sync all checkbox is checked", )
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
def step(context): newAccount = AccountConnectionWizard() newAccount.connectAccount()
def step(context): newAccount = AccountConnectionWizard() newAccount.selectManualSyncFolder()
def step(context): newAccount = AccountConnectionWizard() newAccount.selectFoldersToSync(context)
def step(context): newAccount = AccountConnectionWizard() newAccount.openSyncDialog()
def step(context): newAccount = AccountConnectionWizard() newAccount.addServer(context)
def step(context, errorMsg): newAccount = AccountConnectionWizard() test.compare(str(waitForObjectExists(newAccount.ERROR_LABEL).text), errorMsg)
def step(context): newAccount = AccountConnectionWizard() newAccount.addUserCreds(context)
def step(context): newAccount = AccountConnectionWizard() newAccount.addServer(context) newAccount.addUserCreds(context) newAccount.selectSyncFolder(context)