sfdx-browserforce-plugin 4.8.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -105
- package/lib/browserforce-command.js +8 -6
- package/lib/browserforce-command.js.map +1 -1
- package/lib/browserforce.js +13 -9
- package/lib/browserforce.js.map +1 -1
- package/lib/commands/browserforce/apply.js +6 -6
- package/lib/commands/browserforce/apply.js.map +1 -1
- package/lib/commands/browserforce/plan.js +7 -7
- package/lib/commands/browserforce/plan.js.map +1 -1
- package/lib/config-parser.js +1 -1
- package/lib/config-parser.js.map +1 -1
- package/lib/pages/login.js +4 -4
- package/lib/pages/login.js.map +1 -1
- package/lib/plugin.js +1 -1
- package/lib/plugins/activity-settings/index.e2e-spec.js +2 -2
- package/lib/plugins/activity-settings/index.js +13 -14
- package/lib/plugins/activity-settings/index.js.map +1 -1
- package/lib/plugins/company-information/index.e2e-spec.js +2 -2
- package/lib/plugins/company-information/index.js +18 -22
- package/lib/plugins/company-information/index.js.map +1 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.js +16 -12
- package/lib/plugins/customer-portal/available-custom-objects/index.js.map +1 -1
- package/lib/plugins/customer-portal/available-custom-objects/index.test.js +8 -8
- package/lib/plugins/customer-portal/enabled/index.js +13 -16
- package/lib/plugins/customer-portal/enabled/index.js.map +1 -1
- package/lib/plugins/customer-portal/enabled/index.test.js +4 -4
- package/lib/plugins/customer-portal/index.e2e-spec.js +25 -19
- package/lib/plugins/customer-portal/index.e2e-spec.js.map +1 -1
- package/lib/plugins/customer-portal/index.js +10 -9
- package/lib/plugins/customer-portal/index.js.map +1 -1
- package/lib/plugins/customer-portal/index.test.js +22 -22
- package/lib/plugins/customer-portal/portals/index.js +54 -52
- package/lib/plugins/customer-portal/portals/index.js.map +1 -1
- package/lib/plugins/customer-portal/portals/index.test.js +37 -37
- package/lib/plugins/customer-portal/portals/index.test.js.map +1 -1
- package/lib/plugins/density-settings/index.e2e-spec.js +1 -1
- package/lib/plugins/density-settings/index.js +13 -16
- package/lib/plugins/density-settings/index.js.map +1 -1
- package/lib/plugins/deprecated.d.ts +4 -0
- package/lib/plugins/deprecated.js +28 -0
- package/lib/plugins/deprecated.js.map +1 -0
- package/lib/plugins/email-deliverability/index.e2e-spec.js +4 -4
- package/lib/plugins/email-deliverability/index.js +16 -17
- package/lib/plugins/email-deliverability/index.js.map +1 -1
- package/lib/plugins/high-velocity-sales-settings/index.e2e-spec.js +2 -2
- package/lib/plugins/high-velocity-sales-settings/index.js +1 -1
- package/lib/plugins/high-velocity-sales-settings/index.js.map +1 -1
- package/lib/plugins/high-velocity-sales-settings/page.js +1 -1
- package/lib/plugins/high-velocity-sales-settings/page.js.map +1 -1
- package/lib/plugins/history-tracking/index.e2e-spec.js +38 -38
- package/lib/plugins/history-tracking/index.e2e-spec.js.map +1 -1
- package/lib/plugins/history-tracking/index.js +20 -21
- package/lib/plugins/history-tracking/index.js.map +1 -1
- package/lib/plugins/home-page-layouts/index.e2e-spec.js +8 -8
- package/lib/plugins/home-page-layouts/index.js +13 -14
- package/lib/plugins/home-page-layouts/index.js.map +1 -1
- package/lib/plugins/home-page-layouts/index.test.js +29 -29
- package/lib/plugins/index.d.ts +1 -3
- package/lib/plugins/index.js +1 -3
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/lightning-experience-settings/index.js +16 -17
- package/lib/plugins/lightning-experience-settings/index.js.map +1 -1
- package/lib/plugins/linkedin-sales-navigator-settings/index.e2e-spec.js +2 -2
- package/lib/plugins/linkedin-sales-navigator-settings/index.js.map +1 -1
- package/lib/plugins/omni-channel-settings/index.e2e-spec.js +2 -2
- package/lib/plugins/omni-channel-settings/index.js +9 -13
- package/lib/plugins/omni-channel-settings/index.js.map +1 -1
- package/lib/plugins/opportunity-splits/index.e2e-spec.js +5 -4
- package/lib/plugins/opportunity-splits/index.e2e-spec.js.map +1 -1
- package/lib/plugins/opportunity-splits/index.js +1 -1
- package/lib/plugins/opportunity-splits/pages/layout-selection.js +4 -2
- package/lib/plugins/opportunity-splits/pages/layout-selection.js.map +1 -1
- package/lib/plugins/opportunity-splits/pages/overview.d.ts +1 -0
- package/lib/plugins/opportunity-splits/pages/overview.js +19 -9
- package/lib/plugins/opportunity-splits/pages/overview.js.map +1 -1
- package/lib/plugins/opportunity-splits/pages/setup.js +5 -4
- package/lib/plugins/opportunity-splits/pages/setup.js.map +1 -1
- package/lib/plugins/permission-sets/index.e2e-spec.js +4 -4
- package/lib/plugins/permission-sets/index.e2e-spec.js.map +1 -1
- package/lib/plugins/permission-sets/index.js +1 -1
- package/lib/plugins/permission-sets/index.js.map +1 -1
- package/lib/plugins/permission-sets/service-presence-status/index.js +25 -21
- package/lib/plugins/permission-sets/service-presence-status/index.js.map +1 -1
- package/lib/plugins/picklists/field-dependencies/index.js +6 -4
- package/lib/plugins/picklists/field-dependencies/index.js.map +1 -1
- package/lib/plugins/picklists/field-dependencies/index.test.js +13 -13
- package/lib/plugins/picklists/field-dependencies/pages.js +13 -4
- package/lib/plugins/picklists/field-dependencies/pages.js.map +1 -1
- package/lib/plugins/picklists/index.e2e-spec.js +10 -6
- package/lib/plugins/picklists/index.e2e-spec.js.map +1 -1
- package/lib/plugins/picklists/index.js +15 -8
- package/lib/plugins/picklists/index.js.map +1 -1
- package/lib/plugins/picklists/pages.js +31 -11
- package/lib/plugins/picklists/pages.js.map +1 -1
- package/lib/plugins/picklists/standard-value-set.js +1 -1
- package/lib/plugins/picklists/standard-value-set.js.map +1 -1
- package/lib/plugins/record-types/index.e2e-spec.js +10 -10
- package/lib/plugins/record-types/index.e2e-spec.js.map +1 -1
- package/lib/plugins/record-types/index.js +3 -3
- package/lib/plugins/record-types/index.js.map +1 -1
- package/lib/plugins/record-types/pages.js +8 -2
- package/lib/plugins/record-types/pages.js.map +1 -1
- package/lib/plugins/relate-contact-to-multiple-accounts/index.e2e-spec.js +2 -2
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js +37 -32
- package/lib/plugins/relate-contact-to-multiple-accounts/index.js.map +1 -1
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.js +17 -18
- package/lib/plugins/reports-and-dashboards/folder-sharing/index.js.map +1 -1
- package/lib/plugins/reports-and-dashboards/index.js +1 -1
- package/lib/plugins/reports-and-dashboards/index.js.map +1 -1
- package/lib/plugins/salesforce-cpq-config/formConfig.js +638 -638
- package/lib/plugins/salesforce-cpq-config/formConfig.js.map +1 -1
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js +4 -4
- package/lib/plugins/salesforce-cpq-config/index.e2e-spec.js.map +1 -1
- package/lib/plugins/salesforce-cpq-config/index.js +43 -31
- package/lib/plugins/salesforce-cpq-config/index.js.map +1 -1
- package/lib/plugins/salesforce-to-salesforce/index.e2e-spec.js +2 -2
- package/lib/plugins/salesforce-to-salesforce/index.js +16 -17
- package/lib/plugins/salesforce-to-salesforce/index.js.map +1 -1
- package/lib/plugins/security/authentication-configuration/index.e2e-spec.js +9 -15
- package/lib/plugins/security/authentication-configuration/index.e2e-spec.js.map +1 -1
- package/lib/plugins/security/authentication-configuration/index.js +22 -24
- package/lib/plugins/security/authentication-configuration/index.js.map +1 -1
- package/lib/plugins/security/certificate-and-key-management/index.e2e-spec.js +63 -0
- package/lib/plugins/security/certificate-and-key-management/index.e2e-spec.js.map +1 -0
- package/lib/plugins/security/certificate-and-key-management/index.js +48 -30
- package/lib/plugins/security/certificate-and-key-management/index.js.map +1 -1
- package/lib/plugins/security/certificate-and-key-management/index.test.js +18 -18
- package/lib/plugins/security/index.d.ts +1 -7
- package/lib/plugins/security/index.js +2 -44
- package/lib/plugins/security/index.js.map +1 -1
- package/lib/plugins/service-channels/capacity/index.js +48 -41
- package/lib/plugins/service-channels/capacity/index.js.map +1 -1
- package/lib/plugins/service-channels/index.e2e-spec.js +14 -14
- package/lib/plugins/service-channels/index.e2e-spec.js.map +1 -1
- package/lib/plugins/service-channels/index.js +4 -3
- package/lib/plugins/service-channels/index.js.map +1 -1
- package/lib/plugins/slack/index.e2e-spec.js +3 -3
- package/lib/plugins/slack/index.js +3 -5
- package/lib/plugins/slack/index.js.map +1 -1
- package/lib/plugins/utils.js +7 -2
- package/lib/plugins/utils.js.map +1 -1
- package/oclif.manifest.json +3 -3
- package/package.json +4 -3
- package/lib/plugins/communities/index.d.ts +0 -10
- package/lib/plugins/communities/index.e2e-spec.js +0 -34
- package/lib/plugins/communities/index.e2e-spec.js.map +0 -1
- package/lib/plugins/communities/index.js +0 -45
- package/lib/plugins/communities/index.js.map +0 -1
- package/lib/plugins/defer-sharing-calculation/index.d.ts +0 -9
- package/lib/plugins/defer-sharing-calculation/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/defer-sharing-calculation/index.e2e-spec.js +0 -70
- package/lib/plugins/defer-sharing-calculation/index.e2e-spec.js.map +0 -1
- package/lib/plugins/defer-sharing-calculation/index.js +0 -39
- package/lib/plugins/defer-sharing-calculation/index.js.map +0 -1
- package/lib/plugins/security/identity-provider/index.d.ts +0 -9
- package/lib/plugins/security/identity-provider/index.js +0 -81
- package/lib/plugins/security/identity-provider/index.js.map +0 -1
- package/lib/plugins/security/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/security/index.e2e-spec.js +0 -82
- package/lib/plugins/security/index.e2e-spec.js.map +0 -1
- package/lib/plugins/security/login-access-policies/index.d.ts +0 -8
- package/lib/plugins/security/login-access-policies/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/security/login-access-policies/index.e2e-spec.js +0 -27
- package/lib/plugins/security/login-access-policies/index.e2e-spec.js.map +0 -1
- package/lib/plugins/security/login-access-policies/index.js +0 -30
- package/lib/plugins/security/login-access-policies/index.js.map +0 -1
- package/lib/plugins/security/sharing/index.d.ts +0 -8
- package/lib/plugins/security/sharing/index.e2e-spec.d.ts +0 -1
- package/lib/plugins/security/sharing/index.e2e-spec.js +0 -29
- package/lib/plugins/security/sharing/index.e2e-spec.js.map +0 -1
- package/lib/plugins/security/sharing/index.js +0 -36
- package/lib/plugins/security/sharing/index.js.map +0 -1
- /package/lib/plugins/{communities → security/certificate-and-key-management}/index.e2e-spec.d.ts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
|
-
import { LoginAccessPolicies } from './index.js';
|
|
3
|
-
describe(LoginAccessPolicies.name, function () {
|
|
4
|
-
let plugin;
|
|
5
|
-
before(() => {
|
|
6
|
-
plugin = new LoginAccessPolicies(global.bf);
|
|
7
|
-
});
|
|
8
|
-
describe('administratorsCanLogInAsAnyUser', () => {
|
|
9
|
-
const configDisabled = { administratorsCanLogInAsAnyUser: false };
|
|
10
|
-
const configEnabled = { administratorsCanLogInAsAnyUser: true };
|
|
11
|
-
it('should enable', async () => {
|
|
12
|
-
await plugin.run(configEnabled);
|
|
13
|
-
});
|
|
14
|
-
it('should be enabled', async () => {
|
|
15
|
-
const res = await plugin.retrieve();
|
|
16
|
-
assert.deepStrictEqual(res, configEnabled);
|
|
17
|
-
});
|
|
18
|
-
it('should disable', async () => {
|
|
19
|
-
await plugin.apply(configDisabled);
|
|
20
|
-
});
|
|
21
|
-
it('should be disabled', async () => {
|
|
22
|
-
const res = await plugin.retrieve();
|
|
23
|
-
assert.deepStrictEqual(res, configDisabled);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.e2e-spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../../src/plugins/security/login-access-policies/index.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAe,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE9D,QAAQ,CAAC,mBAAmB,CAAC,IAAI,EAAE;IACjC,IAAI,MAA2B,CAAC;IAChC,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;QAC/C,MAAM,cAAc,GAAW,EAAE,+BAA+B,EAAE,KAAK,EAAE,CAAC;QAC1E,MAAM,aAAa,GAAW,EAAE,+BAA+B,EAAE,IAAI,EAAE,CAAC;QAExE,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;YAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;YACjC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpC,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;YAC9B,MAAM,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;YAClC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;YACpC,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../../plugin.js';
|
|
2
|
-
const PATHS = {
|
|
3
|
-
BASE: 'partnerbt/loginAccessPolicies.apexp'
|
|
4
|
-
};
|
|
5
|
-
const SELECTORS = {
|
|
6
|
-
ENABLED: 'input[id$="adminsCanLogInAsAny"]',
|
|
7
|
-
CONFIRM_MESSAGE: '.message.confirmM3',
|
|
8
|
-
SAVE_BUTTON: 'input[id$=":save"]'
|
|
9
|
-
};
|
|
10
|
-
export class LoginAccessPolicies extends BrowserforcePlugin {
|
|
11
|
-
async retrieve() {
|
|
12
|
-
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
13
|
-
await page.waitForSelector(SELECTORS.ENABLED);
|
|
14
|
-
const response = {
|
|
15
|
-
administratorsCanLogInAsAnyUser: await page.$eval(SELECTORS.ENABLED, (el) => el.checked)
|
|
16
|
-
};
|
|
17
|
-
await page.close();
|
|
18
|
-
return response;
|
|
19
|
-
}
|
|
20
|
-
async apply(config) {
|
|
21
|
-
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
22
|
-
await page.waitForSelector(SELECTORS.ENABLED);
|
|
23
|
-
await page.$eval(SELECTORS.ENABLED, (e, v) => {
|
|
24
|
-
e.checked = v;
|
|
25
|
-
}, config.administratorsCanLogInAsAnyUser);
|
|
26
|
-
await Promise.all([page.waitForSelector(SELECTORS.CONFIRM_MESSAGE), page.click(SELECTORS.SAVE_BUTTON)]);
|
|
27
|
-
await page.close();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/security/login-access-policies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,qCAAqC;CAC5C,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,kCAAkC;IAC3C,eAAe,EAAE,oBAAoB;IACrC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAMF,MAAM,OAAO,mBAAoB,SAAQ,kBAAkB;IAClD,KAAK,CAAC,QAAQ;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,QAAQ,GAAG;YACf,+BAA+B,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC;SAC3G,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACnB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,KAAK,CACd,SAAS,CAAC,OAAO,EACjB,CAAC,CAAmB,EAAE,CAAU,EAAE,EAAE;YAClC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC;QAChB,CAAC,EACD,MAAM,CAAC,+BAA+B,CACvC,CAAC;QACF,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACxG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
|
-
import { Sharing } from './index.js';
|
|
3
|
-
describe.skip(Sharing.name, function () {
|
|
4
|
-
let plugin;
|
|
5
|
-
before(() => {
|
|
6
|
-
plugin = new Sharing(global.bf);
|
|
7
|
-
});
|
|
8
|
-
const configEnabled = {
|
|
9
|
-
enableExternalSharingModel: true
|
|
10
|
-
};
|
|
11
|
-
const configDisabled = {
|
|
12
|
-
enableExternalSharingModel: true
|
|
13
|
-
};
|
|
14
|
-
it('should enable', async () => {
|
|
15
|
-
await plugin.run(configEnabled);
|
|
16
|
-
});
|
|
17
|
-
it('should be enabled', async () => {
|
|
18
|
-
const state = await plugin.retrieve();
|
|
19
|
-
assert.deepStrictEqual(state, configEnabled);
|
|
20
|
-
});
|
|
21
|
-
it('should disable', async () => {
|
|
22
|
-
await plugin.apply(configDisabled);
|
|
23
|
-
});
|
|
24
|
-
it('should be disabled', async () => {
|
|
25
|
-
const state = await plugin.retrieve();
|
|
26
|
-
assert.deepStrictEqual(state, configDisabled);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=index.e2e-spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.e2e-spec.js","sourceRoot":"","sources":["../../../../src/plugins/security/sharing/index.e2e-spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;IAC1B,IAAI,MAAe,CAAC;IACpB,MAAM,CAAC,GAAG,EAAE;QACV,MAAM,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG;QACpB,0BAA0B,EAAE,IAAI;KACjC,CAAC;IACF,MAAM,cAAc,GAAG;QACrB,0BAA0B,EAAE,IAAI;KACjC,CAAC;IAEF,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;QACjC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;QACtC,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;QAC9B,MAAM,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,QAAQ,EAAE,CAAC;QACtC,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BrowserforcePlugin } from '../../../plugin.js';
|
|
2
|
-
const PATHS = {
|
|
3
|
-
BASE: 'p/own/OrgSharingDetail'
|
|
4
|
-
};
|
|
5
|
-
const SELECTORS = {
|
|
6
|
-
EXTERNAL_SHARING_MODEL_BUTTON: '#externalSharingModelButton',
|
|
7
|
-
ENABLE_BUTTON: 'input#externalSharingModelButton:not([onclick*="Modal.confirm"])',
|
|
8
|
-
DISABLE_BUTTON: 'input#externalSharingModelButton[onclick*="Modal.confirm"]',
|
|
9
|
-
MODAL_DIALOG: 'Modal.confirm'
|
|
10
|
-
};
|
|
11
|
-
export class Sharing extends BrowserforcePlugin {
|
|
12
|
-
async retrieve() {
|
|
13
|
-
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
14
|
-
await page.waitForSelector(SELECTORS.EXTERNAL_SHARING_MODEL_BUTTON);
|
|
15
|
-
const buttonOnclick = await page.$eval(SELECTORS.EXTERNAL_SHARING_MODEL_BUTTON, (el) => el.onclick?.toString() || '');
|
|
16
|
-
await page.close();
|
|
17
|
-
return {
|
|
18
|
-
enableExternalSharingModel: buttonOnclick.includes(SELECTORS.MODAL_DIALOG)
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
async apply(config) {
|
|
22
|
-
const page = await this.browserforce.openPage(PATHS.BASE);
|
|
23
|
-
await page.waitForSelector(SELECTORS.EXTERNAL_SHARING_MODEL_BUTTON);
|
|
24
|
-
page.on('dialog', async (dialog) => {
|
|
25
|
-
await dialog.accept();
|
|
26
|
-
});
|
|
27
|
-
if (config.enableExternalSharingModel) {
|
|
28
|
-
await Promise.all([page.waitForSelector(SELECTORS.DISABLE_BUTTON), page.click(SELECTORS.ENABLE_BUTTON)]);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
await Promise.all([page.waitForSelector(SELECTORS.ENABLE_BUTTON), page.click(SELECTORS.DISABLE_BUTTON)]);
|
|
32
|
-
}
|
|
33
|
-
await page.close();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/security/sharing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,wBAAwB;CAC/B,CAAC;AACF,MAAM,SAAS,GAAG;IAChB,6BAA6B,EAAE,6BAA6B;IAC5D,aAAa,EAAE,kEAAkE;IACjF,cAAc,EAAE,4DAA4D;IAC5E,YAAY,EAAE,eAAe;CAC9B,CAAC;AAMF,MAAM,OAAO,OAAQ,SAAQ,kBAAkB;IACtC,KAAK,CAAC,QAAQ;QACnB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACpE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,KAAK,CACpC,SAAS,CAAC,6BAA6B,EACvC,CAAC,EAAoB,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CACvD,CAAC;QACF,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACnB,OAAO;YACL,0BAA0B,EAAE,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC;SAC3E,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,MAAc;QAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAC;QACpE,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACjC,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,0BAA0B,EAAE,CAAC;YACtC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3G,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;QAC3G,CAAC;QACD,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACF"}
|
/package/lib/plugins/{communities → security/certificate-and-key-management}/index.e2e-spec.d.ts
RENAMED
|
File without changes
|