testaro 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/procs/wavedoc.json +1617 -0
- package/tests/hover.js +12 -6
package/tests/hover.js
CHANGED
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
hover
|
|
3
3
|
This test reports unexpected effects of hovering. The effects include elements that are made
|
|
4
4
|
visible, elements whose opacities are changed, elements with ancestors whose opacities are
|
|
5
|
-
changed, and elements that cannot be hovered over. Only Playwright-visible elements
|
|
6
|
-
'A', 'BUTTON', and 'LI' tag names or have 'onmouseenter' or 'onmouseover' attributes
|
|
7
|
-
considered as hovering targets. The elements considered when the effects of hovering are
|
|
5
|
+
changed, and elements that cannot be hovered over. Only Playwright-visible elements in the
|
|
6
|
+
DOM that have 'A', 'BUTTON', and 'LI' tag names or have 'onmouseenter' or 'onmouseover' attributes
|
|
7
|
+
are considered as hovering targets. The elements considered when the effects of hovering are
|
|
8
8
|
examined are the descendants of the grandparent of the element hovered over if that element
|
|
9
9
|
has the tag name 'A' or 'BUTTON' or otherwise the descendants of the element. The only
|
|
10
10
|
elements counted as being made visible by hovering are those with tag names 'A', 'BUTTON',
|
|
11
11
|
'INPUT', and 'SPAN', and those with 'role="menuitem"' attributes. The test waits 700 ms after
|
|
12
|
-
each hover in case of delayed effects. Despite this delay, the test can make the execution
|
|
13
|
-
practical by randomly sampling targets instead of hovering over all of them. When
|
|
14
|
-
performed, the results may vary from one execution to another.
|
|
12
|
+
each hover in case of delayed effects. Despite this delay, the test can make the execution
|
|
13
|
+
time practical by randomly sampling targets instead of hovering over all of them. When
|
|
14
|
+
sampling is performed, the results may vary from one execution to another. An element is
|
|
15
|
+
reported as unhoverable when it fails the Playwright actionability checks for hovering, i.e.
|
|
16
|
+
when it fails to be attached to the DOM, visible, stable (not or no longer animating), and
|
|
17
|
+
able to receive events. All target candidates satisfy the first two conditions, so only the
|
|
18
|
+
last two might fail. Playwright defines the ability to receive events as being the target of
|
|
19
|
+
an action on the location where the center of the element is, rather than some other element
|
|
20
|
+
with a higher zIndex value in the same location being the target.
|
|
15
21
|
*/
|
|
16
22
|
|
|
17
23
|
// CONSTANTS
|