• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript adf-testing.LoginSSOPage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中@alfresco/adf-testing.LoginSSOPage的典型用法代码示例。如果您正苦于以下问题:TypeScript LoginSSOPage类的具体用法?TypeScript LoginSSOPage怎么用?TypeScript LoginSSOPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了LoginSSOPage类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: beforeAll

    beforeAll(async (done) => {
        silentLogin = false;
        settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
        loginSSOPage.clickOnSSOButton();
        browser.ignoreSynchronization = true;
        loginSSOPage.loginSSOIdentityService(user, password);

        await tasksService.init(user, password);
        let createdTaskId = await tasksService.createStandaloneTask(basicCreatedTaskName, simpleApp);
        await tasksService.claimTask(createdTaskId.entry.id, simpleApp);
        basicCreatedTask = await tasksService.getTask(createdTaskId.entry.id, simpleApp);
        basicCreatedDate = moment(basicCreatedTask.entry.createdDate).format(formatDate);

        let completedTaskId = await tasksService.createStandaloneTask(completedTaskName,
            simpleApp, {priority: priority, description: description, dueDate: basicCreatedTask.entry.createdDate});
        await tasksService.claimTask(completedTaskId.entry.id, simpleApp);
        await tasksService.completeTask(completedTaskId.entry.id, simpleApp);
        completedTask = await tasksService.getTask(completedTaskId.entry.id, simpleApp);
        completedCreatedDate = moment(completedTask.entry.createdDate).format(formatDate);

        let subTaskId = await tasksService.createStandaloneSubtask(createdTaskId.entry.id, simpleApp, Util.generateRandomString());
        await tasksService.claimTask(subTaskId.entry.id, simpleApp);
        subTask = await tasksService.getTask(subTaskId.entry.id, simpleApp);
        subTaskCreatedDate = moment(subTask.entry.createdDate).format(formatDate);

        done();
    });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:27,代码来源:task-details-cloud.e2e.ts


示例2: beforeAll

        beforeAll(async () => {
            silentLogin = false;
            settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
            loginSSOPage.clickOnSSOButton();
            browser.ignoreSynchronization = true;
            loginSSOPage.loginSSOIdentityService(user, password);

            await tasksService.init(user, password);
            await tasksService.createStandaloneTask(createdTaskName, simpleApp);

            assignedTask = await tasksService.createStandaloneTask(assignedTaskName, simpleApp);
            await tasksService.claimTask(assignedTask.entry.id, simpleApp);
            await tasksService.createAndCompleteTask(completedTaskName, simpleApp);
            deletedTask = await tasksService.createStandaloneTask(deletedTaskName, simpleApp);
            await tasksService.deleteTask(deletedTask.entry.id, simpleApp);
            for (let i = 0; i < nrOfTasks; i++) {
                await tasksService.createStandaloneTask(orderByNameAndPriority[i], simpleApp, { priority: priority });
                priority = priority + 20;
            }

            await processDefinitionService.init(user, password);
            let processDefinition = await processDefinitionService.getProcessDefinitions(simpleApp);
            await processInstancesService.init(user, password);
            let processInstance = await processInstancesService.createProcessInstance(processDefinition.list.entries[0].entry.key, simpleApp);
            let secondProcessInstance = await processInstancesService.createProcessInstance(processDefinition.list.entries[0].entry.key, simpleApp);
            await queryService.init(user, password);
            suspendedTasks = await queryService.getProcessInstanceTasks(processInstance.entry.id, simpleApp);
            await queryService.getProcessInstanceTasks(secondProcessInstance.entry.id, simpleApp);
            await processInstancesService.suspendProcessInstance(processInstance.entry.id, simpleApp);
            await processInstancesService.deleteProcessInstance(secondProcessInstance.entry.id, simpleApp);
            await queryService.getProcessInstanceTasks(processInstance.entry.id, simpleApp);
        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:32,代码来源:tasks-custom-filters.e2e.ts


示例3: beforeAll

 beforeAll(() => {
     silentLogin = false;
     settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
     loginSSOPage.clickOnSSOButton();
     browser.ignoreSynchronization = true;
     loginSSOPage.loginSSOIdentityService(user, password);
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:7,代码来源:task-filters-cloud.e2e.ts


示例4: beforeAll

 beforeAll(async () => {
     await identityService.init(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
     await rolesService.init(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
     apsUser = await identityService.createIdentityUser();
     apsUserRoleId = await rolesService.getRoleIdByRoleName(CONSTANTS.ROLES.APS_USER);
     await identityService.assignRole(apsUser.id, apsUserRoleId, CONSTANTS.ROLES.APS_USER);
     activitiUser = await identityService.createIdentityUser();
     activitiUserRoleId = await rolesService.getRoleIdByRoleName(CONSTANTS.ROLES.ACTIVITI_USER);
     await identityService.assignRole(activitiUser.id, activitiUserRoleId, CONSTANTS.ROLES.ACTIVITI_USER);
     noRoleUser = await identityService.createIdentityUser();
     await groupIdentityService.init(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
     groupAps = await groupIdentityService.createIdentityGroup();
     apsAdminRoleId = await rolesService.getRoleIdByRoleName(CONSTANTS.ROLES.APS_ADMIN);
     await groupIdentityService.assignRole(groupAps.id, apsAdminRoleId, CONSTANTS.ROLES.APS_ADMIN);
     groupActiviti = await groupIdentityService.createIdentityGroup();
     activitiAdminRoleId = await rolesService.getRoleIdByRoleName(CONSTANTS.ROLES.ACTIVITI_ADMIN);
     await groupIdentityService.assignRole(groupActiviti.id, activitiAdminRoleId, CONSTANTS.ROLES.ACTIVITI_ADMIN);
     groupNoRole = await groupIdentityService.createIdentityGroup();
     users = [`${apsUser.id}`, `${activitiUser.id}`, `${noRoleUser.id}`];
     groups = [`${groupAps.id}`, `${groupActiviti.id}`, `${groupNoRole.id}`];
     silentLogin = false;
     settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
     loginSSOPage.clickOnSSOButton();
     browser.ignoreSynchronization = true;
     loginSSOPage.loginSSOIdentityService(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
     navigationBarPage.navigateToPeopleGroupCloudPage();
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:27,代码来源:people-group-cloud-component.e2e.ts


示例5: beforeAll

 beforeAll(async () => {
     await identityService.init(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword, 'alfresco');
     identityUser = await identityService.createIdentityUser();
     silentLogin = false;
     settingsPage.setProviderEcmSso(TestConfig.adf.url, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin, true, 'alfresco');
     loginSSOPage.clickOnSSOButton();
     browser.ignoreSynchronization = true;
     loginSSOPage.loginSSOIdentityService(identityUser.username, identityUser.password);
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:9,代码来源:user-info-component-cloud.e2e.ts


示例6: beforeAll

 beforeAll((done) => {
     silentLogin = false;
     settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
     loginSSOPage.clickOnSSOButton();
     browser.ignoreSynchronization = true;
     loginSSOPage.loginSSOIdentityService(user, password);
     navigationBarPage.navigateToProcessServicesCloudPage();
     appListCloudComponent.checkApsContainer();
     done();
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:10,代码来源:start-process-cloud.e2e.ts


示例7: it

    it('[C280665] Should be possible change the logout redirect URL', () => {
        settingsPage.setProviderEcmSso(TestConfig.adf.url, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, false, true, 'alfresco', '/login');
        loginSSOPage.clickOnSSOButton();
        loginSSOPage.loginSSOIdentityService(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
        navigationBarPage.clickLogoutButton();

        browser.getCurrentUrl().then((actualUrl) => {
            expect(actualUrl).toEqual(TestConfig.adf.url + '/login');
        });

    });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:11,代码来源:login-sso.e2e.ts


示例8: beforeAll

        beforeAll(async () => {
            silentLogin = false;
            settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
            loginSSOPage.clickOnSSOButton();
            browser.ignoreSynchronization = true;
            loginSSOPage.loginSSOIdentityService(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);

            await tasksService.init(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
            assignedTask = await tasksService.createStandaloneTask(assignedTaskName, simpleApp);
            await tasksService.claimTask(assignedTask.entry.id, simpleApp);
            await tasksService.createAndCompleteTask(completedTaskName, simpleApp);
        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:12,代码来源:edit-task-filters-component.e2e.ts


示例9: beforeAll

 beforeAll((done) => {
     silentLogin = false;
     settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
     loginSSOPage.clickOnSSOButton();
     browser.ignoreSynchronization = true;
     loginSSOPage.loginSSOIdentityService(user, password);
     navigationBarPage.navigateToProcessServicesCloudPage();
     appListCloudComponent.checkApsContainer();
     appListCloudComponent.checkAppIsDisplayed(appName);
     appListCloudComponent.goToApp(appName);
     tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitForTableBody();
     done();
 });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:13,代码来源:start-task-custom-app-cloud.e2e.ts


示例10: beforeAll

        beforeAll(async () => {
            silentLogin = false;
            settingsPage.setProviderBpmSso(TestConfig.adf.hostBPM, TestConfig.adf.hostSso, TestConfig.adf.hostIdentity, silentLogin);
            loginSSOPage.clickOnSSOButton();
            browser.ignoreSynchronization = true;
            loginSSOPage.loginSSOIdentityService(user, password);

            await processDefinitionService.init(user, password);
            let processDefinition = await processDefinitionService.getProcessDefinitions(simpleApp);
            await processInstancesService.init(user, password);
            runningProcess = await processInstancesService.createProcessInstance(processDefinition.list.entries[0].entry.key, simpleApp);

        });
开发者ID:Alfresco,项目名称:alfresco-ng2-components,代码行数:13,代码来源:processList-cloud-component.e2e.ts



注:本文中的@alfresco/adf-testing.LoginSSOPage类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript adf-testing.StartTasksCloudPage类代码示例发布时间:2022-05-28
下一篇:
TypeScript adf-testing.HeaderPage类代码示例发布时间:2022-05-28
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap