-
Notifications
You must be signed in to change notification settings - Fork 167
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
fix Shouldn't process shadow ui elements
(close #1570)
#1571
Conversation
❌ Tests for the commit a0436bc have failed. See details: |
❌ Tests for the commit bcebd87 have failed. See details: |
@testcafe-build-bot \retest |
✅ Tests for the commit bcebd87 have passed. See details: |
src/client/sandbox/node/index.js
Outdated
@@ -46,7 +46,7 @@ export default class NodeSandbox extends SandboxBase { | |||
_processElement (el) { | |||
const processedContext = el[INTERNAL_PROPS.processedContext]; | |||
|
|||
if (processedContext !== this.window) { | |||
if (!domUtils.isShadowUIElement(el) && processedContext !== this.window) { |
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.
minor enhancement: let's use a fast forward paradigm and remove one level of the brackets
...
...
if (domUtils.isShadowUIElement(el) || processedContext === this.window)
retrun;
...
test('should not process shadow ui elements (GH-1570)', function () { | ||
var shadowUIElements = hammerhead.nativeMethods.querySelectorAll.call(document, '[class$="-hammerhead-shadow-ui"]'); | ||
|
||
for (var i = 0; i < shadowUIElements.length; i++) |
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.
Also before the loop, add a check that garanties there are shadow ui elements.
ok(shadowUIElements.length);
❌ Tests for the commit cabb1fc have failed. See details: |
@testcafe-build-bot \retest |
✅ Tests for the commit cabb1fc have passed. See details: |
FPR |
…evExpress#1571) * fix `Shouldn't process shadow ui elements` (close DevExpress#1570) * fix review issues
No description provided.