You can use `toBeFocused` matcher.