]> source.dussan.org Git - nextcloud-server.git/commit
Fix clicks on actions menu of non opaque file rows in acceptance tests 22481/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 28 Aug 2020 23:08:30 +0000 (01:08 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Sat, 29 Aug 2020 01:32:14 +0000 (03:32 +0200)
commit034b7bd4a903e5c3fca9851ea4f67af64ed474d2
tree9d4af02a75c7f61fef0283d6c493a38ecf25fe35
parent7b8364e001119aff43a236f2941da0c405c21f29
Fix clicks on actions menu of non opaque file rows in acceptance tests

When a row is added to the file list the opacity of the file row is
animated from transparent to fully opaque. As the file actions menu is a
descendant of the row but overflows it when the row is not fully opaque
clicks on the menu entries "fall-through" and are received instead by
the rows behind.

The opacity animation is a CSS animation, and it is not possible to know
if a row is appearing or not except from its opacity (the row will have
the "appear" CSS class even after the animation ended). Therefore it
should be waited until the row of the file is fully opaque before using
the menu.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/acceptance/features/bootstrap/FileListContext.php