Writing Strong Front-end Test Element Locators

Automated front-end tests are awesome. We can write a test with code to visit a page — or load up just a single component — and have that test code click on things or type text like a user would, …

Writing Strong Front-end Test Element Locators originally published on CSS-Tricks. You should get the newsletter.

https://css-tricks.com/front-end-test-element-locators/

Created 3y | Apr 22, 2022, 8:20:35 PM


Login to add comment

Other posts in this group

Color Everything in CSS

An introduction to "Color spaces", "Color models", "Color gamuts," and basically all of the "Color somethings" in CSS.


Jun 20, 2025, 3:20:14 PM | CSS tricks
CSS Color Functions

CSS has a number of functions that can be used to set, translate, and manipulate colors. Learn what they are and how they are used with a bunch of examples to get you started.


Jun 19, 2025, 4:10:13 PM | CSS tricks
How to Keep Up With New CSS Features

How do you stay informed of new CSS features when the language evolves quickly and information is spread all around the web? Sacha Greif has some tips from his work running an annual survey focused

Jun 17, 2025, 3:20:16 PM | CSS tricks
A Better API for the Resize Observer

ResizeObserver, MutationObserver, and IntersectionObserver enhance performance over their predecessors. Zell discusses their API similarities, usage steps, refactoring strategies, and advantages wi

Jun 16, 2025, 1:50:11 PM | CSS tricks
Breaking Boundaries: Building a Tangram Puzzle With (S)CSS

We put it to the test and it turns out Sass can replace JavaScript, at least when it comes to low-level logic and puzzle behavior. With nothing but maps, mixins, functions, and a whole lot of math,

Jun 12, 2025, 2:50:07 PM | CSS tricks
Creating an Auto-Closing Notification With an HTML Popover

The HTML popover attribute transforms elements into top-layer elements that can be opened and closed with a button or JavaScript. Popovers can be dismissed a number of ways, but there

Jun 9, 2025, 2:50:20 PM | CSS tricks
Better CSS Shapes Using shape() — Part 3: Curves

This is the third article in a series about the CSS shape() function. We've covered drawing lines and arcs in previous articles and, this time, we look specifically at the curve

Jun 6, 2025, 3:10:24 PM | CSS tricks