Update tip test.

Include testing how tips near the viewport edge
shrink their width and position themselves.
Initial workaround for aligning wider tips near the right edge to the right edge.