We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
According to the rule using
within(screen.getByTestId('section')).getByText('foo');
is allowed.
However, saving the result to a variable
const context = within(screen.getByTestId('section')).getByText('foo');
to re-use it, results in the warning.