Once you have the initial design and logic for your widget, you’ll want to stress test it across various scenarios to make sure it works properly.
Here are some helpful things to keep in mind as you test & debug your widget:
- What are the core use cases of your widget? Make sure to test those extensively.
- What are way users might incorrectly use your widget? Test those too.
- If your widget executes long-running tasks, note that the user can unexpected stop your widget by:
- Deleting your widget
- Interacting with another widget
- Leaving the file
- Losing internet connection/going offline
- If your widget is only meant to do something if certain type of nodes are selected, what happens when:
- The user has nothing selected?
- The wrong type of node is selected?
- Multiple things are selected?
- If your widget needs to load resources over the network, make sure to account for what will happen if the user is temporary offline while using your widget.
- Widgets are highly collaborative — make sure to test your widget with multiple people. If you can’t do that, open a file that contains your widget in two windows of the Figma Desktop app.
- If your plugin can traverse large parts of the document (e.g. search for a node), what happens if the document is very large?
- Keep in mind that FigJam for iPad is available. Is your widget usable on a smaller screen like an iPad?