mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ESLint: cleanup await expect
from protractor tests (#9630)
This commit is contained in:
@@ -77,11 +77,9 @@ describe('Comment component for Processes', () => {
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + addedComment.total + ')');
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(addedComment.data[0].message);
|
||||
await expect(await commentsPage.getUserName(0)).toEqual(
|
||||
addedComment.data[0].createdBy.firstName + ' ' + addedComment.data[0].createdBy.lastName
|
||||
);
|
||||
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
expect(await commentsPage.getMessage(0)).toEqual(addedComment.data[0].message);
|
||||
expect(await commentsPage.getUserName(0)).toEqual(addedComment.data[0].createdBy.firstName + ' ' + addedComment.data[0].createdBy.lastName);
|
||||
expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
});
|
||||
|
||||
it('[C260465] Should not be able to view process comment on included task', async () => {
|
||||
@@ -97,7 +95,7 @@ describe('Comment component for Processes', () => {
|
||||
const taskId = taskQuery.data[0].id;
|
||||
|
||||
const taskComments = await commentsApi.getTaskComments(taskId, { latestFirst: true });
|
||||
await expect(taskComments.total).toEqual(0);
|
||||
expect(taskComments.total).toEqual(0);
|
||||
});
|
||||
|
||||
it('[C260466] Should be able to display comments from Task on the related Process', async () => {
|
||||
@@ -117,10 +115,10 @@ describe('Comment component for Processes', () => {
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + addedTaskComment.total + ')');
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(addedTaskComment.data[0].message);
|
||||
await expect(await commentsPage.getUserName(0)).toEqual(
|
||||
expect(await commentsPage.getMessage(0)).toEqual(addedTaskComment.data[0].message);
|
||||
expect(await commentsPage.getUserName(0)).toEqual(
|
||||
addedTaskComment.data[0].createdBy.firstName + ' ' + addedTaskComment.data[0].createdBy.lastName
|
||||
);
|
||||
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user