From e24f06e7a271bdb739ce79e08f0f00cf0a61ec36 Mon Sep 17 00:00:00 2001 From: Sid Date: Wed, 3 Dec 2025 19:54:30 +0530 Subject: [PATCH] chore: add `data-testid` as a review prompt --- CODING_STANDARDS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md index 400e8f51a..6db50e5d8 100644 --- a/CODING_STANDARDS.md +++ b/CODING_STANDARDS.md @@ -67,6 +67,7 @@ Remember, these rules are here to make our codebase harmonious. If something doe - Use styled component's theme prop to manage CSS colors and not CSS variables when in the context of a styled component or any react component using the styled component - Styled Components are used as wrappers to define both self and children components style, tailwind classes are used specifically for layout based styles. - Styled Component CSS might also change layout but tailwind classes shouldn't define colors. +- `data-testid` is preferred for when being used in tests with playwright and jsdom accessors. ## Readability and Abstractions