@@ -9,7 +9,6 @@ const loginPage = require('@page-objects/default/login/login.wdio.page');
9
9
const commonPage = require ( '@page-objects/default/common/common.wdio.page' ) ;
10
10
const reportsPage = require ( '@page-objects/default/reports/reports.wdio.page' ) ;
11
11
const contactsPage = require ( '@page-objects/default/contacts/contacts.wdio.page' ) ;
12
- const genericForm = require ( '@page-objects/default/enketo/generic-form.wdio.page' ) ;
13
12
const createUserForContactsPage = require ( '@page-objects/default/enketo/create-user-for-contacts' ) ;
14
13
const { BASE_URL , DEFAULT_USER_CONTACT_DOC } = require ( '@constants' ) ;
15
14
@@ -270,8 +269,7 @@ describe('Create user for contacts', () => {
270
269
const originalContactId = ORIGINAL_USER . contact . _id ;
271
270
272
271
await commonPage . goToPeople ( originalContactId ) ;
273
- await createUserForContactsPage . submitReplaceUserForm ( REPLACE_USER_FORM_ID ) ;
274
- await genericForm . submitForm ( { waitForPageLoaded : false } ) ;
272
+ await createUserForContactsPage . submitReplaceUserForm ( REPLACE_USER_FORM_ID , false ) ;
275
273
276
274
// Logout triggered immediately
277
275
await ( await loginPage . loginButton ( ) ) . waitForDisplayed ( ) ;
@@ -306,6 +304,7 @@ describe('Create user for contacts', () => {
306
304
307
305
// Open the texted link
308
306
await commonPage . logout ( ) ;
307
+
309
308
await browser . url ( loginLink ) ;
310
309
await commonPage . waitForPageLoaded ( ) ;
311
310
const [ cookie ] = await browser . getCookies ( 'userCtx' ) ;
@@ -484,8 +483,7 @@ describe('Create user for contacts', () => {
484
483
const originalContactId = ORIGINAL_USER . contact . _id ;
485
484
486
485
await commonPage . goToPeople ( originalContactId ) ;
487
- await createUserForContactsPage . submitReplaceUserForm ( REPLACE_USER_FORM_ID ) ;
488
- await genericForm . submitForm ( { waitForPageLoaded : false } ) ;
486
+ await createUserForContactsPage . submitReplaceUserForm ( REPLACE_USER_FORM_ID , false ) ;
489
487
490
488
// Logout triggered immediately
491
489
await ( await loginPage . loginButton ( ) ) . waitForDisplayed ( ) ;
0 commit comments