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

Apex program to invoke a LWC action


I have added an LWC action button on one of my objects. The LWC is opening a screen and allowing users to enter few details and then the user clicks Save. It's creating a child record and automatically links it to the Parent record from which the user clicked the LWC action button.

How do I write a Test Class -- How do I mention in my Test Class that the LWC button is clicked and the assertEquals is returning all the correct values?
AnkaiahAnkaiah (Salesforce Developers) 
Hi Sambit,

Refer the below link will help you to proceed further on your reqirement.