Skip to content

Commit

Permalink
Remove test setup manual step (#143)
Browse files Browse the repository at this point in the history
Add relate a contact to multiple accounts as metadata to deploy with
other test dependencies

---------

Co-authored-by: Aidan Majewski <[email protected]>
  • Loading branch information
aimaj and aimaj-salesforce authored Sep 4, 2023
1 parent 2841f38 commit 9773928
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion test/main/default/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
<members>SalesforceInspectorTest</members>
<name>ApexClass</name>
</types>
<version>47.0</version>
<types>
<members>Account</members>
<name>Settings</name>
</types>
<version>58.0</version>
</Package>
4 changes: 4 additions & 0 deletions test/main/default/settings/Account.settings-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<AccountSettings xmlns="http://soap.sforce.com/2006/04/metadata">
<enableRelateContactToMultipleAccounts>true</enableRelateContactToMultipleAccounts>
</AccountSettings>

0 comments on commit 9773928

Please sign in to comment.