diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-01-28 19:33:14 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2020-01-28 19:33:14 +0100 |
commit | bcfe1d3f3e86cde83e485de722a223d26078b569 (patch) | |
tree | 4c0108008cd48a1d7608cabf68afe0a77c33ff7b | |
parent | cypress: mobile: Update table insertion test. (diff) | |
download | online-bcfe1d3f3e86cde83e485de722a223d26078b569.tar.gz online-bcfe1d3f3e86cde83e485de722a223d26078b569.zip |
cypress: mobile: Fix cypress tests after recent focus changes.
By now, we only emulate mobile layout, but we are using
simple mouse events (click, rightclick), not touch events.
Later it might worth to investigate, how to emulate touch
events.
Change-Id: Ib7d032933c50221173bbc749f0653d7d777884b1
-rw-r--r-- | loleaflet/src/map/Map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index 45ab9273a0..68606b7384 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -909,7 +909,7 @@ L.Map = L.Evented.extend({ // accept key input, and show the virtual keyboard. focus: function (acceptInput) { this._textInput.focus(); - if (window.mode.isMobile() && acceptInput !== true) + if (window.mode.isMobile() && acceptInput !== true && !L.Browser.cypressTest) this.blur(); }, |