Summary
Replace truthy-based wait defaults with nullish coalescing so explicit falsy values like 0 are preserved instead of falling back to the default delay.
Changes
- update
src/common/utils.ts to use time ?? 2000 in wait
- update
test/smoke/suites/helper/waitHelper.ts to use time ?? 2000 in wait
Why
The previous time ? time : 2000 logic treated 0 as “not provided”, which changed the caller’s intent and could introduce unexpected delays.
Validation
Summary
Replace truthy-based wait defaults with nullish coalescing so explicit falsy values like
0are preserved instead of falling back to the default delay.Changes
src/common/utils.tsto usetime ?? 2000inwaittest/smoke/suites/helper/waitHelper.tsto usetime ?? 2000inwaitWhy
The previous
time ? time : 2000logic treated0as “not provided”, which changed the caller’s intent and could introduce unexpected delays.Validation
npm run build