queryByTestId method
Finds the first ElNode in the tree whose data-testid attribute matches testId.
Returns null if no matching element is found.
Implementation
ElNode? queryByTestId(String testId) {
final found = _find(root, (n) => n is ElNode && n.attrs?['data-testid'] == testId);
return found as ElNode?;
}