You need to sign in to do that
Don't have an account?
SambitNayak
Apex program to invoke a LWC action
Hi,
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?
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?
Refer the below link will help you to proceed further on your reqirement.
https://www.salesforceben.com/create-lightning-web-components-lwc-using-quick-actions/
Thanks!!