mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5261] Fix excluded flaky tests C297689, C297690 (#6212)
* [ADF-5261] Fix excluded flaky tests C297689, C297690 * * fixed test
This commit is contained in:
@@ -47,7 +47,7 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
|
|
||||||
const noTasksFoundMessage = 'No Tasks Found';
|
const noTasksFoundMessage = 'No Tasks Found';
|
||||||
let createdTask, notAssigned, notDisplayedTask, processDefinition, processInstance, priorityTask, subTask,
|
let createdTask, notAssigned, notDisplayedTask, processDefinition, processInstance, priorityTask, subTask,
|
||||||
otherOwnerTask, testUser, groupInfo;
|
otherOwnerTask, testUser, groupInfo, simpleTask;
|
||||||
const priority = 30;
|
const priority = 30;
|
||||||
|
|
||||||
const beforeDate = moment().add(-1, 'days').format('DD/MM/YYYY');
|
const beforeDate = moment().add(-1, 'days').format('DD/MM/YYYY');
|
||||||
@@ -70,6 +70,7 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
createdTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
createdTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||||
await tasksService.claimTask(createdTask.entry.id, simpleApp);
|
await tasksService.claimTask(createdTask.entry.id, simpleApp);
|
||||||
|
|
||||||
|
simpleTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||||
notAssigned = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
notAssigned = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp);
|
||||||
priorityTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp, { priority: priority });
|
priorityTask = await tasksService.createStandaloneTask(StringUtil.generateRandomString(), simpleApp, { priority: priority });
|
||||||
await tasksService.claimTask(priorityTask.entry.id, simpleApp);
|
await tasksService.claimTask(priorityTask.entry.id, simpleApp);
|
||||||
@@ -225,7 +226,8 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
|
|
||||||
it('[C297689] Task is not displayed when typing into lastModifiedFrom field the same date as tasks CreatedDate', async () => {
|
it('[C297689] Task is not displayed when typing into lastModifiedFrom field the same date as tasks CreatedDate', async () => {
|
||||||
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedFrom(currentDate);
|
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedFrom(currentDate);
|
||||||
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name);
|
await tasksCloudDemoPage.editTaskFilterCloudComponent().setTaskName(simpleTask.entry.name);
|
||||||
|
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(simpleTask.entry.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C297485] Task is displayed when typing into lastModifiedTo field a date after the task CreatedDate', async () => {
|
it('[C297485] Task is displayed when typing into lastModifiedTo field a date after the task CreatedDate', async () => {
|
||||||
@@ -238,7 +240,8 @@ describe('Edit task filters and task list properties', () => {
|
|||||||
|
|
||||||
it('[C297690] Task is not displayed when typing into lastModifiedTo field the same date as tasks CreatedDate', async () => {
|
it('[C297690] Task is not displayed when typing into lastModifiedTo field the same date as tasks CreatedDate', async () => {
|
||||||
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(currentDate);
|
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(currentDate);
|
||||||
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(createdTask.entry.name);
|
await tasksCloudDemoPage.editTaskFilterCloudComponent().setTaskName(simpleTask.entry.name);
|
||||||
|
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(simpleTask.entry.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C297691] Task is not displayed when typing into lastModifiedFrom field a date before the task due date ' +
|
it('[C297691] Task is not displayed when typing into lastModifiedFrom field a date before the task due date ' +
|
||||||
|
@@ -6,7 +6,5 @@
|
|||||||
"C260051": "login problem APS not basic",
|
"C260051": "login problem APS not basic",
|
||||||
"C279932": "login problem APS not basic",
|
"C279932": "login problem APS not basic",
|
||||||
"C279931": "login problem APS not basic",
|
"C279931": "login problem APS not basic",
|
||||||
"C279930": "login problem APS not basic",
|
"C279930": "login problem APS not basic"
|
||||||
"C297690": "https://issues.alfresco.com/jira/browse/ADF-5261",
|
|
||||||
"C297689": "https://issues.alfresco.com/jira/browse/ADF-5261"
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user