diff --git a/package.json b/package.json index f54fbd9..6f37108 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "texei-sfdx-plugin", "description": "Texeï's plugin for sfdx", - "version": "2.8.0", + "version": "2.8.1", "author": "Texeï", "bugs": "https://github.com/texei/texei-sfdx-plugin/issues", "type": "module", diff --git a/src/commands/texei/sharedactivities/enable.ts b/src/commands/texei/sharedactivities/enable.ts index f13899a..ad52824 100644 --- a/src/commands/texei/sharedactivities/enable.ts +++ b/src/commands/texei/sharedactivities/enable.ts @@ -66,7 +66,7 @@ export default class Enable extends SfCommand { }); const page = await browser.newPage(); await page.goto(`${instanceUrl}/secur/frontdoor.jsp?sid=${accessToken}`, { - waitUntil: ['domcontentloaded', 'networkidle0'], + waitUntil: ['domcontentloaded', 'networkidle2'], }); const navigationPromise = page.waitForNavigation(); diff --git a/src/commands/texei/sharingcalc/recalculate.ts b/src/commands/texei/sharingcalc/recalculate.ts index ecd9f51..1f1fc0b 100644 --- a/src/commands/texei/sharingcalc/recalculate.ts +++ b/src/commands/texei/sharingcalc/recalculate.ts @@ -70,7 +70,7 @@ export default class Recalculate extends SfCommand const page = await browser.newPage(); await page.goto( `${instanceUrl}/secur/frontdoor.jsp?sid=${flags['target-org'].getConnection(flags['api-version']).accessToken}`, - { waitUntil: ['domcontentloaded', 'networkidle0'] } + { waitUntil: ['domcontentloaded', 'networkidle2'] } ); const navigationPromise = page.waitForNavigation(); diff --git a/src/commands/texei/sharingcalc/resume.ts b/src/commands/texei/sharingcalc/resume.ts index b2dab8e..e9edf15 100644 --- a/src/commands/texei/sharingcalc/resume.ts +++ b/src/commands/texei/sharingcalc/resume.ts @@ -95,7 +95,7 @@ export default class Resume extends SfCommand { const page = await browser.newPage(); await page.goto( `${instanceUrl}/secur/frontdoor.jsp?sid=${flags['target-org'].getConnection(flags['api-version']).accessToken}`, - { waitUntil: ['domcontentloaded', 'networkidle0'] } + { waitUntil: ['domcontentloaded', 'networkidle2'] } ); const navigationPromise = page.waitForNavigation(); diff --git a/src/commands/texei/sharingcalc/suspend.ts b/src/commands/texei/sharingcalc/suspend.ts index 8279904..461fbf9 100644 --- a/src/commands/texei/sharingcalc/suspend.ts +++ b/src/commands/texei/sharingcalc/suspend.ts @@ -96,7 +96,7 @@ export default class Suspend extends SfCommand { const page = await browser.newPage(); await page.goto( `${instanceUrl}/secur/frontdoor.jsp?sid=${flags['target-org'].getConnection(flags['api-version']).accessToken}`, - { waitUntil: ['domcontentloaded', 'networkidle0'] } + { waitUntil: ['domcontentloaded', 'networkidle2'] } ); const navigationPromise = page.waitForNavigation(); diff --git a/src/shared/standardValueSetHelper.ts b/src/shared/standardValueSetHelper.ts index dfeb996..70b17f7 100644 --- a/src/shared/standardValueSetHelper.ts +++ b/src/shared/standardValueSetHelper.ts @@ -41,7 +41,7 @@ export class StandardValueSetHelper { this.page = await this.browser.newPage(); await this.page.goto(`${this._connection.instanceUrl}/secur/frontdoor.jsp?sid=${this._connection.accessToken}`, { - waitUntil: ['domcontentloaded', 'networkidle0'], + waitUntil: ['domcontentloaded', 'networkidle2'], }); this.navigationPromise = this.page.waitForNavigation();