Skip to content

Commit c34d3bc

Browse files
committed
Adding fix for tooltips intercepting clicks with selenium tests.
1 parent 7780790 commit c34d3bc

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

client/public/css/common.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,14 @@ textarea {
55
legend {
66
width: 540px;
77
}
8+
9+
/* Bootstrap hides .tooltiptext with visibility:hidden (not display:none), so
10+
the span still occupies layout and can be reported by the browser as the
11+
topmost element at a nearby control's location — which makes Selenium fail
12+
with "element click intercepted: ... <span class="tooltiptext">". Marking
13+
hidden tooltips non-interactive keeps them from ever being a pointer/click
14+
target. (token_detail.css has the same rule for the token-detail page; this
15+
covers the debugger pages, which load common.css but not token_detail.css.) */
16+
.tooltip .tooltiptext {
17+
pointer-events: none;
18+
}

client/public/css/debugger2.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ legend {
3434
max-width: 100%;
3535
box-sizing: border-box;
3636
}
37+
38+
/* Bootstrap hides .tooltiptext with visibility:hidden (not display:none), so
39+
the span still occupies layout and can be reported as the topmost element at
40+
a control's location, making Selenium fail with "element click intercepted:
41+
... <span class="tooltiptext">". debugger2.html loads this file (not
42+
common.css), so mirror common.css / token_detail.css here. */
43+
.tooltip .tooltiptext {
44+
pointer-events: none;
45+
}

0 commit comments

Comments
 (0)