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
Bug 1840624: fix(CLI-drawer): Add preventdefault to adjust scroll issue #5596
Bug 1840624: fix(CLI-drawer): Add preventdefault to adjust scroll issue #5596
Conversation
/retitle Bug 1840624: fix(CLI-drawer): Add preventdefault to adjust scroll issue |
@abhinandan13jan: This pull request references Bugzilla bug 1840624, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@abhinandan13jan: This pull request references Bugzilla bug 1840624, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
const data = {} as DraggableData; | ||
const onChange = jest.fn(); | ||
const wrapper = shallow(<Drawer resizable defaultHeight={100} onChange={onChange} />); | ||
wrapper | ||
.find(DraggableCoreIFrameFix) | ||
.props() | ||
.onStart({ pageY: 500 } as any, data); | ||
.onStart({ pageY: 500, ...e } as any, data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like just associating a variable with extra steps 😄
// const e = { preventDefault: jest.fn() };
const preventDefault = jest.fn();
.onStart({ pageY: 500, ...e } as any, data); | |
.onStart({ pageY: 500, preventDefault } as any, data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this
6ed9257
to
869d25b
Compare
/assign @christianvogt |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinandan13jan, christianvogt, jcaianirh, rohitkrai03 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@abhinandan13jan: All pull requests linked via external trackers have merged: openshift/console#5596. Bugzilla bug 1840624 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes:
Addresses https://issues.redhat.com/browse/ODC-3740
https://bugzilla.redhat.com/show_bug.cgi?id=1840624
Analysis / Root cause:
Autoscrolling when using Terminal drawer
Solution Description:
Adds prevent default to the
function
passed over to theonStart
actionScreenshot
Tests
Alters test in
Drawer.spec.tsx
Browser conformation
Chrome 73