Skip to content

Feat request: 希望提供类似nextTick的异步api以支持检查异步事件回调 #19

@funkyLover

Description

@funkyLover

触发按钮点击会回调对应的事件回调方法,但是方法里面是异步的逻辑

希望可以在异步流程完成之后在页面元素是否正确

    const btn = comp.querySelector('.');
    reqBtn.dispatchEvent('tap', {});
    // 等待事件
    await simulate.sleep(10);
    // 这里还要等待对应的回调方法执行完成
    // 检查状态

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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