Skip to content

[table] Flakiness in TableQuadrantStack tests #7664

@ggdouglas

Description

@ggdouglas

CircleCI test insights identify the "Scroll syncing onScroll" tests of TableQuadrantStack as our most flaky test suite. We should skip these tests until we can rewrite them to be more reliable.

describe("onScroll", () => {
// "wheel" is invoked before "scroll"; both listeners may invoke
// onScroll, but we want it to be invoked just once on each "wheel"
// event. thus, use the stricter `calledOnce` instead of `called`.
it("invokes onScroll on MAIN quadrant scroll", () => {
TestUtils.Simulate.scroll(mainScrollContainer);
expect(onScroll.calledOnce).to.be.true;
});
it("invokes onScroll on MAIN quadrant wheel", () => {
TestUtils.Simulate.wheel(mainScrollContainer);
expect(onScroll.calledOnce).to.be.true;
});
it("invokes onScroll on TOP quadrant wheel", () => {
act(() => {
TestUtils.Simulate.wheel(topScrollContainer);
});
expect(onScroll.calledOnce).to.be.true;
});
it("invokes onScroll on LEFT quadrant wheel", () => {
TestUtils.Simulate.wheel(leftScrollContainer);
expect(onScroll.calledOnce).to.be.true;
});
it("invokes onScroll on TOP_LEFT quadrant wheel", () => {
TestUtils.Simulate.wheel(topLeftScrollContainer);
expect(onScroll.calledOnce).to.be.true;
});
});

https://app.circleci.com/insights/github/palantir/blueprint/workflows/compile_lint_test_dist_deploy/tests

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions