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

Selection setting fixed #1565

Merged
merged 3 commits into from
Apr 11, 2018
Merged

Conversation

helen-dikareva
Copy link
Collaborator

This fix for TestCafe bug

@@ -7,6 +7,8 @@ var isIE = browserUtils.isIE;
var isMobileBrowser = browserUtils.isIOS || browserUtils.isAndroid;
var browserVersion = browserUtils.version;

var IE_FOCUS_TIMEOUT = 100;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var IE11_FOCUS_TIMEOUT = 100;

@@ -80,3 +82,89 @@ test('Focus should stay on input with "number" type after setting selection', fu
strictEqual(document.activeElement, input);
document.body.removeChild(input);
});

asyncTest('Focus should not be called during setting selection if conteneditable element has been already focused (TestCafe GH - 2301)', function () {
var isOldIE = browserUtils.isIE && browserUtils.version < 12;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the isOldIE variable and use the browserUtils.isIE11 instruction.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit b2515cf have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 73ee44a have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 4a8ec08 have passed. See details:

@miherlosev miherlosev merged commit 8156e91 into DevExpress:master Apr 11, 2018
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this pull request Feb 28, 2019
* fix

* test added

* test fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants