function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ValnavjoValnavjo 

Internal Server Error when running tests on Apex.InputText and "Label" attribute.

Hi,

 

Just wanted to report an issue, that is pretty similar to this one:

 

https://sites.secure.force.com/success/issues_view?id=a1p30000000RdurAAC

 

but in my case, with a "Component.Apex.InputText" component and the "Label" attribute. As a workaround, instead of deleting the stuff, just add "if (!Test.isRunningTest())", something like:

 

if (!Test.isRunningTest()) myInputText.Label = 'My text label';

 

 

Happy coding!

 

Valnavjo