[ADF-5245] Fix C297478, C297485 and C297472 (#6147)

This commit is contained in:
davidcanonieto
2020-09-22 18:03:11 +02:00
committed by GitHub
parent 3a464a7bed
commit 636da03eca
4 changed files with 6 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ describe('Edit task filters and task list properties', () => {
}); });
it('[C297478] Should be able to see only tasks that are assigned to a specific user when assignee is set', async () => { it('[C297478] Should be able to see only tasks that are assigned to a specific user when assignee is set', async () => {
await tasksCloudDemoPage.editTaskFilterCloudComponent().setAssignee('admin.adf'); await tasksCloudDemoPage.editTaskFilterCloudComponent().setAssignee(testUser.username);
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTask.entry.name); await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTask.entry.name);
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(notAssigned.entry.name); await tasksCloudDemoPage.taskListCloudComponent().checkContentIsNotDisplayedByName(notAssigned.entry.name);
@@ -228,7 +228,7 @@ describe('Edit task filters and task list properties', () => {
}); });
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 () => {
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedFrom(afterDate); await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(afterDate);
await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTask.entry.name); await tasksCloudDemoPage.taskListCloudComponent().checkContentIsDisplayedByName(createdTask.entry.name);
await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(beforeDate); await tasksCloudDemoPage.editTaskFilterCloudComponent().setLastModifiedTo(beforeDate);

View File

@@ -165,6 +165,7 @@ describe('Task list cloud - selection', () => {
it('[C297472] Should be able to see selected tasks with Multiselection and Testing switched on', async () => { it('[C297472] Should be able to see selected tasks with Multiselection and Testing switched on', async () => {
await tasksCloudDemoPage.clickSettingsButton(); await tasksCloudDemoPage.clickSettingsButton();
await tasksCloudDemoPage.enableMultiSelection();
await tasksCloudDemoPage.enableTestingMode(); await tasksCloudDemoPage.enableTestingMode();
await tasksCloudDemoPage.clickAppButton(); await tasksCloudDemoPage.clickAppButton();
await tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitTillContentLoaded(); await tasksCloudDemoPage.taskListCloudComponent().getDataTable().waitTillContentLoaded();

View File

@@ -12,8 +12,6 @@
"C291954": "Open ticket", "C291954": "Open ticket",
"C291955": "Open ticket", "C291955": "Open ticket",
"C291993": "Open ticket", "C291993": "Open ticket",
"C291995": "Open ticket", "C291995": "Open ticket"
"C297478": "Open ticket",
"C297485": "Open ticket"
} }

View File

@@ -195,8 +195,8 @@ export class EditTaskFilterCloudComponentPage {
} }
async clearField(locator: ElementFinder): Promise<void> { async clearField(locator: ElementFinder): Promise<void> {
await BrowserActions.clearSendKeys(locator, ' '); await BrowserVisibility.waitUntilElementIsVisible(locator);
await locator.sendKeys(protractor.Key.BACK_SPACE); await BrowserActions.clearWithBackSpace(locator);
} }
async setAppNameDropDown(option: string): Promise<void> { async setAppNameDropDown(option: string): Promise<void> {