mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Remove excluded test (#6096)
* remove excluded test part1 * remove fit * fix * fix lint * fix * fix * fix * fix * fix lint * fix lint * fixes * update protractor due incompatibility with new node versions * increase timeout pdf when system is busy
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { BrowserActions, BrowserVisibility, DropdownPage, TabsPage } from '@alfresco/adf-testing';
|
||||
import { Locator, browser, by, element, Key } from 'protractor';
|
||||
import { browser, by, element, Key } from 'protractor';
|
||||
import { AppSettingsTogglesPage } from './dialog/app-settings-toggles.page';
|
||||
|
||||
export class TaskDetailsPage {
|
||||
@@ -45,7 +45,6 @@ export class TaskDetailsPage {
|
||||
involvePeopleButton = element(by.css('div[class*="add-people"]'));
|
||||
addPeopleField = element(by.css('input[data-automation-id="adf-people-search-input"]'));
|
||||
addInvolvedUserButton = element(by.css('button[id="add-people"]'));
|
||||
emailInvolvedUser: Locator = by.css('[data-automation-id="adf-people-email"]');
|
||||
taskDetailsInfoDrawer = element(by.tagName('adf-info-drawer'));
|
||||
taskDetailsSection = element(by.css('div[data-automation-id="app-tasks-details"]'));
|
||||
taskDetailsEmptySection = element(by.css('div[data-automation-id="adf-tasks-details--empty"]'));
|
||||
@@ -294,6 +293,7 @@ export class TaskDetailsPage {
|
||||
async checkUserIsSelected(user: string): Promise<void> {
|
||||
const row = this.getRowsUser(user);
|
||||
await BrowserVisibility.waitUntilElementIsVisible(row);
|
||||
await browser.sleep(2000);
|
||||
}
|
||||
|
||||
async clickAddInvolvedUserButton(): Promise<void> {
|
||||
@@ -313,9 +313,7 @@ export class TaskDetailsPage {
|
||||
}
|
||||
|
||||
async getInvolvedUserEmail(user): Promise<string> {
|
||||
const row = this.getRowsUser(user);
|
||||
const email = row.element(this.emailInvolvedUser);
|
||||
return BrowserActions.getText(email);
|
||||
return BrowserActions.getText(element(by.css(`div[data-automation-id="adf-people-email-${user.replace(' ', '-')}"]`)));
|
||||
}
|
||||
|
||||
async clickAuditLogButton(): Promise<void> {
|
||||
|
@@ -158,6 +158,7 @@ describe('People component', () => {
|
||||
await expect(await taskPage.taskDetails().getInvolvedUserEmail(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName))
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(assigneeUserModel.email, assigneeUserModel.password);
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
@@ -216,6 +217,7 @@ describe('People component', () => {
|
||||
await expect(await taskPage.taskDetails().getInvolvedUserEmail(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName))
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(assigneeUserModel.email, assigneeUserModel.password);
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
|
@@ -186,6 +186,7 @@ describe('Process List Test', () => {
|
||||
await expect(JSON.stringify(processList) === JSON.stringify(sortedProcessListNamesAsc)).toBe(true);
|
||||
|
||||
await processListDemoPage.selectSorting('desc');
|
||||
await processListDemoPage.dataTable.waitTillContentLoaded();
|
||||
|
||||
const sortedProcessListNamesDesc = await processListDemoPage.getDisplayedProcessesNames();
|
||||
await expect(JSON.stringify(processList.reverse()) === JSON.stringify(sortedProcessListNamesDesc)).toBe(true);
|
||||
|
@@ -80,6 +80,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
await taskDetails.clickInvolvePeopleButton();
|
||||
await taskDetails.typeUser(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName);
|
||||
|
||||
await taskDetails.selectUserToInvolve(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName);
|
||||
await taskDetails.checkUserIsSelected(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName);
|
||||
|
||||
|
@@ -259,7 +259,6 @@ describe('Task Details - Form', () => {
|
||||
});
|
||||
|
||||
it('[C315193] Should be able to complete a standalone task with invisible tab with invalid value for field', async () => {
|
||||
// ACTIVITI-3746
|
||||
await tasksListPage.selectRow(newTask.name);
|
||||
await widget.tab().checkTabIsDisplayedByLabel(tab.tabWithFields);
|
||||
await widget.tab().checkTabIsDisplayedByLabel(tab.tabFieldField);
|
||||
|
Reference in New Issue
Block a user