diff options
author | Henri Sara <hesara@vaadin.com> | 2015-12-21 11:44:23 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-12-21 10:45:00 +0000 |
commit | 9dbaab1898a62a0eb94e70437e876ca80a5ee591 (patch) | |
tree | c9531d6436a1473f056671fbb990e2b645a6ae60 /uitest | |
parent | a20b178dda71fa6a60db322d90e63bfa9d43f9d2 (diff) | |
download | vaadin-framework-9dbaab1898a62a0eb94e70437e876ca80a5ee591.tar.gz vaadin-framework-9dbaab1898a62a0eb94e70437e876ca80a5ee591.zip |
Ignore context click on resize handle (#19408)
Otherwise, context clicks in the left edge of a header cell get
handled by the wrong cell.
Change-Id: I08e0c6bb62c90cc871fde7ec1d0f0a8602e5631f
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/contextclick/GridContextClickTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/contextclick/GridContextClickTest.java b/uitest/src/com/vaadin/tests/contextclick/GridContextClickTest.java index 7b97de2be5..6ee7a89178 100644 --- a/uitest/src/com/vaadin/tests/contextclick/GridContextClickTest.java +++ b/uitest/src/com/vaadin/tests/contextclick/GridContextClickTest.java @@ -18,6 +18,7 @@ package com.vaadin.tests.contextclick; import static org.junit.Assert.assertEquals; import org.junit.Test; +import org.openqa.selenium.WebElement; import com.vaadin.testbench.elements.ButtonElement; import com.vaadin.testbench.elements.GridElement; @@ -89,4 +90,20 @@ public class GridContextClickTest extends AbstractContextClickTest { } + /** + * Performs a context click on given element at coordinates 20, 10 followed + * by a regular click. This prevents browser context menu from blocking + * future operations. + * + * A smaller X offset might hit the resize handle of the previous cell that + * overlaps with the next header cell. + * + * @param e + * web element + */ + @Override + protected void contextClick(WebElement e) { + contextClick(e, 20, 10); + } + } |