ESLint: cleanup await expect from protractor tests (#9630)

This commit is contained in:
Denys Vuika
2024-04-30 08:07:10 -04:00
committed by GitHub
parent 4109f272ea
commit f401b8c13e
114 changed files with 2096 additions and 1908 deletions

View File

@@ -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();
});