Expression representing the value to be returned.
Should evaluate to the appropriate return type expected by the function signature. In test contexts, typically void or validation result objects.
Can reference previously captured data from API operations or computed values, but should not contain direct API calls.
Type discriminator.
Return statement for function termination.
Rarely used in E2E test functions since they typically return void. May be used in helper functions or when test functions need to return specific data for chaining or validation purposes.
Note: Most E2E test functions should complete naturally without explicit return statements, as they represent complete business workflow testing rather than value-returning operations.
AI function calling usage: Generally avoid in main test functions. Consider only for special cases where test result data needs to be returned to calling context, such as helper functions within arrow function expressions.