From e7407b522725bdfe1e0d5777a94df33cdf3b30af Mon Sep 17 00:00:00 2001 From: Aidan Majewski Date: Tue, 22 Aug 2023 16:57:24 +1000 Subject: [PATCH 1/3] add account settings --- README.md | 5 ++--- test/main/default/package.xml | 4 ++++ test/main/default/settings/Account.settings-meta.xml | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 test/main/default/settings/Account.settings-meta.xml diff --git a/README.md b/README.md index a8dccdb7..f220fc51 100644 --- a/README.md +++ b/README.md @@ -111,9 +111,8 @@ Linting : to assure indentation, formatting and best practices coherence, please 1. Set up an org (e.g. a Developer Edition) and apply the following customizations: 1. Everything described in metadata in `test/`. Push to org with `sfdx force:source:deploy -p test/ -u [your-test-org-alias]` - 2. Ensure _Allow users to relate a contact to multiple accounts_ is enabled (Setup→Account Settings) - 3. Ensure the org has no _namespace prefix_ (Setup→Package Manager) - 4. Assign PermissionSet SfInspector + 2. Ensure the org has no _namespace prefix_ (Setup→Package Manager) + 3. Assign PermissionSet SfInspector 2. Navigate to one of the extension pages and replace the file name with `test-framework.html`, for example `chrome-extension://example/test-framework.html?host=example.my.salesforce.com`. 3. Wait until "Salesforce Inspector unit test finished successfully" is shown. 4. If the test fails, open your browser's developer tools console to see error messages. diff --git a/test/main/default/package.xml b/test/main/default/package.xml index cef45927..b8c0ca58 100644 --- a/test/main/default/package.xml +++ b/test/main/default/package.xml @@ -8,5 +8,9 @@ SalesforceInspectorTest ApexClass + + Account + Settings + 47.0 \ No newline at end of file diff --git a/test/main/default/settings/Account.settings-meta.xml b/test/main/default/settings/Account.settings-meta.xml new file mode 100644 index 00000000..3909c82f --- /dev/null +++ b/test/main/default/settings/Account.settings-meta.xml @@ -0,0 +1,4 @@ + + + true + \ No newline at end of file From 77f0850f07babfcaf7f525010cadb2666c1014f0 Mon Sep 17 00:00:00 2001 From: Aidan Majewski Date: Wed, 23 Aug 2023 09:34:09 +1000 Subject: [PATCH 2/3] update changes --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 19fa0d88..2368ffb2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ - Add "Create New Flow" shortcut - Update pop-up release note link to github pages - Detect SObject on listview page [feature 121](https://github.com/tprouvot/Salesforce-Inspector-reloaded/issues/121) (idea by [Mehdi Cherfaoui](https://github.com/mehdisfdc)) +- Automate test setup manual step of contact to multiple accounts [aidan](https://github.com/aimaj) # Version 1.19 From 292a52a1031d1dabfcd01a9a6ab82995834c9925 Mon Sep 17 00:00:00 2001 From: Aidan Majewski Date: Wed, 23 Aug 2023 09:34:45 +1000 Subject: [PATCH 3/3] bump package version --- test/main/default/package.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/main/default/package.xml b/test/main/default/package.xml index b8c0ca58..346b7499 100644 --- a/test/main/default/package.xml +++ b/test/main/default/package.xml @@ -12,5 +12,5 @@ Account Settings - 47.0 + 58.0 \ No newline at end of file