mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
various code quality fixes (#5792)
* various code quality fixes * reduce duplicated code * add safety check
This commit is contained in:
@@ -101,9 +101,8 @@ describe('Upload component', () => {
|
||||
afterEach(async () => {
|
||||
const nbResults = await contentServicesPage.numberOfResultsDisplayed();
|
||||
if (nbResults > 1) {
|
||||
const nodesPromise = await contentServicesPage.getElementsDisplayedId();
|
||||
for (const node of nodesPromise) {
|
||||
const nodeId = await node;
|
||||
const nodeIds = await contentServicesPage.getElementsDisplayedId();
|
||||
for (const nodeId of nodeIds) {
|
||||
await uploadActions.deleteFileOrFolder(nodeId);
|
||||
}
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ describe('Comment component for Processes', () => {
|
||||
const taskId = taskQuery.data[0].id;
|
||||
|
||||
const taskComments = await apiService.getInstance().activiti.commentsApi.getTaskComments(taskId, { 'latestFirst': true });
|
||||
await expect(await taskComments.total).toEqual(0);
|
||||
await expect(taskComments.total).toEqual(0);
|
||||
});
|
||||
|
||||
it('[C260466] Should be able to display comments from Task on the related Process', async () => {
|
||||
|
Reference in New Issue
Block a user