Set Checkbox status instead of toggling

UI Components for Angular
Post Reply
Posts: 1
Joined: 27 Sep 2022, 17:22

28 Sep 2022, 09:59

When running automated tests you need to start from an initialized scenario. This means that you must be able to set elements to a desired value. With checkboxes I can only toggle status by simulating a mouse click or a space key when the focus is on the checkbox.
How can I *set* the checkbox to the desired value (checked/unchecked) without reading its status and toggling in case it differs from the expected one?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest