Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成测试 simulateSwipe 方法无法触发滚动容器滚动 #680

Open
temper357 opened this issue Sep 13, 2021 · 0 comments
Open

集成测试 simulateSwipe 方法无法触发滚动容器滚动 #680

temper357 opened this issue Sep 13, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@temper357
Copy link
Contributor

使用的 Kraken 版本 | What version of kraken are you using

main

重现步骤 | Steps To Reproduce

重现代码 | Code example:

  fit('scroll works with overflowY set to auto and overflowX not set', async (done) => {
    let div;
    div = createElement(
      'div',
      {
        style: {
          width: '200px',
          height: '200px',
          overflowY: 'auto',
        },
      }, [
        createElement(
          'div',
          {
            style: {
            width: '200px',
            height: '200px',
            backgroundColor: 'green',

            },
        }),
        createElement(
          'div',
          {
            style: {
            width: '200px',
            height: '200px',
            backgroundColor: 'yellow',

            },
        }),
      ],
    );
    BODY.appendChild(div);
    await snapshot();
    await simulateSwipe(50, 100, 50, 20, 0.1);

    setTimeout(async () => {
      await snapshot();
      done();
    }, 200);
  });

预期结果 | Expected results:

实际结果 | Actual results:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant