本文整理汇总了TypeScript中@alfresco/adf-testing.TaskHeaderCloudPage.getParentName方法的典型用法代码示例。如果您正苦于以下问题:TypeScript TaskHeaderCloudPage.getParentName方法的具体用法?TypeScript TaskHeaderCloudPage.getParentName怎么用?TypeScript TaskHeaderCloudPage.getParentName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@alfresco/adf-testing.TaskHeaderCloudPage
的用法示例。
在下文中一共展示了TaskHeaderCloudPage.getParentName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('[C291943] Should display task details for assigned task', async () => {
tasksCloudDemoPage.myTasksFilter().clickTaskFilter();
tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(basicCreatedTaskName);
tasksCloudDemoPage.taskListCloudComponent().selectRow(basicCreatedTaskName);
expect(taskHeaderCloudPage.getId()).toEqual(basicCreatedTask.entry.id);
expect(taskHeaderCloudPage.getDescription())
.toEqual(basicCreatedTask.entry.description === null ? CONSTANTS.TASK_DETAILS.NO_DESCRIPTION : basicCreatedTask.entry.description);
expect(taskHeaderCloudPage.getStatus()).toEqual(basicCreatedTask.entry.status);
expect(taskHeaderCloudPage.getPriority()).toEqual(basicCreatedTask.entry.priority === 0 ? '' : basicCreatedTask.entry.priority.toString());
expect(taskHeaderCloudPage.getCategory()).toEqual(!basicCreatedTask.entry.category ?
CONSTANTS.TASK_DETAILS.NO_CATEGORY : basicCreatedTask.entry.category);
expect(taskHeaderCloudPage.getDueDate()).toEqual(basicCreatedTask.entry.dueDate === null ?
CONSTANTS.TASK_DETAILS.NO_DATE : basicCreatedDate);
expect(taskHeaderCloudPage.getCreated()).toEqual(basicCreatedDate);
expect(taskHeaderCloudPage.getAssignee()).toEqual(basicCreatedTask.entry.assignee === null ? '' : basicCreatedTask.entry.assignee);
expect(taskHeaderCloudPage.getParentName()).toEqual(CONSTANTS.TASK_DETAILS.NO_PARENT);
expect(taskHeaderCloudPage.getParentTaskId())
.toEqual(basicCreatedTask.entry.parentTaskId === null ? '' : basicCreatedTask.entry.parentTaskId);
});