LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

ers_DatatableControllerTest fails in org Assertion Failed: Expected: standard:contact, Actual: null

Open nicolashamez-dev opened this issue 1 year ago • 4 comments

Test class ers_DatatableControllerTest fails with error "System.AssertException: Assertion Failed: Expected: standard:contact, Actual: null" in my org.

Class.ers_DatatableControllerTest.testGetIconName: line 92, column 1

nicolashamez-dev avatar Jun 07 '24 10:06 nicolashamez-dev

Is this an org with Person Accounts enabled? Feel free to just comment out that line in your org.

ericrsmith35 avatar Jun 09 '24 16:06 ericrsmith35

Hello, after update package I have again the same issue.

Class.ers_DatatableControllerTest.testGetIconName: line 92, column 1
System.AssertException: Assertion Failed: Expected: standard:contact, Actual: null

PersonAccount is not available in my org. I can comment again this line, but exist other workaround ?

When I launch same code et ers_DatatableController.getIconName with 'Contact' in sObjectName variable, I have null result

09:33:23.0 (1215389)|USER_DEBUG|[2]|INFO|Getting Icon for: Contact
09:33:23.0 (78191794)|USER_DEBUG|[29]|INFO|iconName: null

nicolashamez-dev avatar Nov 19 '24 08:11 nicolashamez-dev

In your case I would just comment out that line in the test class

ericrsmith35 avatar Nov 19 '24 18:11 ericrsmith35

In your case I would just comment out that line in the test class

No other fix can exist or in next update ? PersonAccount is not available and each update add this issue again.

nicolashamez-dev avatar Nov 26 '24 23:11 nicolashamez-dev