Lots of your tests fail for people on MM setups, because the TmpWindow you open at (XDo::XWindow.display_geometry[0] - 10,100) is shoved to the next monitor by Metacity, and so don't overlap the Launcher.
Could you do the maths like in test "Move window positioning to check launcher action" as that one works perfectly.
Also some of your comments don't match what's going on, e.g.:
+ # Open Terminal with position 40x100
+ xid = TmpWindow.open_window_at(XDo::XWindow.display_geometry[0] - 40, 100)
Lots of your tests fail for people on MM setups, because the TmpWindow you open at (XDo::XWindow. display_ geometry[ 0] - 10,100) is shoved to the next monitor by Metacity, and so don't overlap the Launcher.
Could you do the maths like in test "Move window positioning to check launcher action" as that one works perfectly.
Also some of your comments don't match what's going on, e.g.:
+ # Open Terminal with position 40x100 open_window_ at(XDo: :XWindow. display_ geometry[ 0] - 40, 100)
+ xid = TmpWindow.
Aside from these things, everything looks good!