Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

39

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Testing With Test Ids

In this video, we will be going over data test ids. Ids are a better way to identify our components and make testing our code faster and easier.

Downloads

Become a pro to download code and videos

Comments

User avatar

Raul

about 2 years ago

@Mounica Yes Mounica, It is perfectly fine to leave test id's in production

Mounica

about 2 years ago

Hi Scott,

Thanks for wonderful training... i have a small query regarding "data-testid" attribute that "Is that okay to keep "data-testid" in the code when we are promoting to production if not how can i hide the attribute in the code?"

Can you please guide me o this.

thanks, Mounica

Nice

about 3 years ago

@JSco +1

JSco

about 3 years ago [edited]

easier to just add jest to the env in .eslintrc than declaring globals

 env: {
    browser: true,
    es6: true,
    jest: true,   //  <- this
  },

Want to join the conversation?

Become a Pro member today!