Record query is unable to assert that a record immediately exists in tests created in scoped apps. If the record does not immediately exist, the step will fail.
This issue has no impact on tests created in global scope.
Steps to Reproduce
Create a test in a scoped application.
Add test steps that cause a record to be created on a delay, such as an approval after submitting a catalog request.
Add a test step Record Query with a reasonable timeout (5-10 seconds) to assert a record exists that will be created on a delay (such as an approval while submitting a service catalog request).
Run the test.
The test sometimes fails because the record query step did not yet find the record, and fails before it can wait for another query attempt.
There is no workaround for tests created in scoped apps. The only way to support a record query that can wait for a record is to create the test in the global scope.
Related Problem: PRB1209940