Skip to content

[Feature] Use nullish coalescing for wait default to preserve explicit falsy values #2740

@EmmaYuan1015

Description

@EmmaYuan1015

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

  • ran npm run build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions