Implement is-visible? assertion for dom