From 97739288dbdf3bc0605b998fbbfa4f24920d8e61 Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 4 Sep 2023 18:17:45 +1000 Subject: [PATCH] Remove test setup manual step (#143) Add relate a contact to multiple accounts as metadata to deploy with other test dependencies --------- Co-authored-by: Aidan Majewski --- CHANGES.md | 1 + README.md | 5 ++--- test/main/default/package.xml | 6 +++++- test/main/default/settings/Account.settings-meta.xml | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 test/main/default/settings/Account.settings-meta.xml diff --git a/CHANGES.md b/CHANGES.md index e969d600..7e125316 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,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 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..346b7499 100644 --- a/test/main/default/package.xml +++ b/test/main/default/package.xml @@ -8,5 +8,9 @@ SalesforceInspectorTest ApexClass - 47.0 + + Account + Settings + + 58.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