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:
@@ -15,7 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { createApiService,
|
||||
import {
|
||||
createApiService,
|
||||
AppListCloudPage,
|
||||
GroupIdentityService,
|
||||
IdentityService,
|
||||
@@ -33,7 +34,6 @@ import { TasksCloudDemoPage } from '.././pages/tasks-cloud-demo.page';
|
||||
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
|
||||
|
||||
describe('Form Field Component - JSON Widget', () => {
|
||||
|
||||
const loginSSOPage = new LoginPage();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
const appListCloudComponent = new AppListCloudPage();
|
||||
@@ -63,7 +63,7 @@ describe('Form Field Component - JSON Widget', () => {
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
|
||||
testUser = await identityService.createIdentityUserWithRole( [identityService.ROLES.ACTIVITI_USER]);
|
||||
testUser = await identityService.createIdentityUserWithRole([identityService.ROLES.ACTIVITI_USER]);
|
||||
|
||||
groupInfo = await groupIdentityService.getGroupInfoByGroupName('hr');
|
||||
await identityService.addUserToGroup(testUser.idIdentityService, groupInfo.id);
|
||||
@@ -79,7 +79,7 @@ describe('Form Field Component - JSON Widget', () => {
|
||||
afterAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await navigationBarPage.navigateToProcessServicesCloudPage();
|
||||
@@ -99,7 +99,7 @@ describe('Form Field Component - JSON Widget', () => {
|
||||
await jsonWidget.clickJsonButton(formWithJson.widgets.displayJsonWidgetId);
|
||||
|
||||
await editJsonDialog.checkDialogIsDisplayed();
|
||||
await expect(await editJsonDialog.getDialogContent()).toBe('{}');
|
||||
expect(await editJsonDialog.getDialogContent()).toBe('{}');
|
||||
await editJsonDialog.clickCloseButton();
|
||||
await editJsonDialog.checkDialogIsNotDisplayed();
|
||||
});
|
||||
|
Reference in New Issue
Block a user