# Making your UI tests resilient to change

DevFeed: [Making your UI tests resilient to change](<https://devfeed.tech/articles/making-your-ui-tests-resilient-to-change-51830.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change>)

Published: 2019-10-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [testing-library](<https://devfeed.tech/topics/testing-library.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [testing](<https://devfeed.tech/tags/testing.md>), [testing-library](<https://devfeed.tech/tags/testing-library.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains how to make UI tests more resilient to changes by selecting elements in ways that resemble how users interact with the software. It recommends Testing Library queries based on roles, labels, text, and other user-facing properties, with test IDs as a fallback.

## Source excerpt

User interface tests are famously finicky and prone to breakage. Let's talk about how to improve this.