diff --git a/src/client/ui/styles.less b/src/client/ui/styles.less index 47b14d4885c..7d6cc47b37b 100644 --- a/src/client/ui/styles.less +++ b/src/client/ui/styles.less @@ -16,7 +16,7 @@ left: 0px; top: 0px; margin: 0 !important; - overflow: visible; + overflow: hidden; .layout-default(); diff --git a/test/functional/fixtures/regression/gh-1138/pages/index.html b/test/functional/fixtures/regression/gh-1138/pages/index.html new file mode 100644 index 00000000000..70d0b46e8b6 --- /dev/null +++ b/test/functional/fixtures/regression/gh-1138/pages/index.html @@ -0,0 +1,19 @@ + + + + GH-1138 + + + +
Click Me
+ + diff --git a/test/functional/fixtures/regression/gh-1138/test.js b/test/functional/fixtures/regression/gh-1138/test.js new file mode 100644 index 00000000000..e457307b63f --- /dev/null +++ b/test/functional/fixtures/regression/gh-1138/test.js @@ -0,0 +1,5 @@ +describe('[Regression](GH-1138)', function () { + it('Test should click on target that has moved during the action', function () { + return runTests('testcafe-fixtures/index.test.js', 'Click on element bound to the right bottom corner'); + }); +}); diff --git a/test/functional/fixtures/regression/gh-1138/testcafe-fixtures/index.test.js b/test/functional/fixtures/regression/gh-1138/testcafe-fixtures/index.test.js new file mode 100644 index 00000000000..5949bf6be31 --- /dev/null +++ b/test/functional/fixtures/regression/gh-1138/testcafe-fixtures/index.test.js @@ -0,0 +1,12 @@ +import { Selector } from 'testcafe'; + +fixture `GH-1138` + .page('http://localhost:3000/fixtures/regression/gh-1138/pages/index.html'); + +test('Click on element bound to the right bottom corner', async t => { + var target = Selector('#target'); + + await t + .click(target) + .expect(target.textContent).eql('It works'); +});