Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(rtl): RTL coverage for twelve Lab parts (Chat additions, Stat, TransferList, LogStream, mobile search, Tour) (#9337)

Cindy Zhang78d41240aa30
diff --git a/apps/storybook/rtl-audit/targets.json b/apps/storybook/rtl-audit/targets.json
index 3158b4d5a9..7289d37584 100644
--- a/apps/storybook/rtl-audit/targets.json
+++ b/apps/storybook/rtl-audit/targets.json
@@ -1014,6 +1014,117 @@
"next": ".astryx-avatar-group-overflow"
}
},
+ {
+ "component": "ChatReactionBar",
+ "storyId": "lab-chatadditions--reactions",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-chat-reaction-bar button:has-text(\"\ud83c\udf89\")",
+ "next": ".astryx-chat-reaction-bar button:has-text(\"\ud83d\udc40\")"
+ }
+ },
+ {
+ "component": "ChatUnreadDivider",
+ "storyId": "lab-chatadditions--typing-and-unread",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-chat-unread-divider > span:first-child",
+ "next": ".astryx-chat-unread-divider span:text-is(\"New\")"
+ }
+ },
+ {
+ "component": "ChatTypingIndicator",
+ "storyId": "lab-chatadditions--typing-and-unread",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-chat-typing-indicator > span:first-child",
+ "next": ".astryx-chat-typing-indicator span:has-text(\"Ana and 2 others\")"
+ }
+ },
+ {
+ "component": "ChatEmojiPicker",
+ "storyId": "lab-chatadditions--emoji-picker",
+ "dims": ["D2"],
+ "setup": {"click": "#storybook-root button >> nth=0"},
+ "selectors": {
+ "prev": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(1)",
+ "next": ".astryx-chat-emoji-picker > div:nth-child(2) > button:nth-child(2)"
+ }
+ },
+ {
+ "component": "Stat",
+ "storyId": "lab-stat--showcase",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": "span:text-is(\"$1.28M\")",
+ "next": "span:text-is(\"$1.28M\") + span"
+ }
+ },
+ {
+ "component": "TransferList",
+ "storyId": "lab-transferlist--default",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-transfer-list-panel >> nth=0",
+ "next": ".astryx-transfer-list-panel >> nth=1"
+ }
+ },
+ {
+ "component": "TransferListSelector",
+ "storyId": "lab-transferlistselector--default",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-complex-selector button span:text-is(\"3 visible fields\")",
+ "next": ".astryx-complex-selector-indicator-icon"
+ }
+ },
+ {
+ "component": "LogStream",
+ "storyId": "lab-logstream--terminal-build",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": "span:text-is(\"12:04:38.207\")",
+ "next": "span:text-is(\"12:04:38.207\") + span"
+ }
+ },
+ {
+ "component": "MobileTokenizer",
+ "storyId": "lab-mobiletokenizer--touch-flow",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-token:has-text(\"Design\")",
+ "next": ".astryx-token:has-text(\"Eng\")"
+ }
+ },
+ {
+ "component": "MobilePowerSearch",
+ "storyId": "lab-mobilepowersearch--touch-flow",
+ "dims": ["D2"],
+ "selectors": {
+ "prev": ".astryx-token:has-text(\"Status\")",
+ "next": ".astryx-token:has-text(\"Priority\")"
+ }
+ },
+ {
+ "component": "Tour",
+ "storyId": "lab-tour--showcase",
+ "dims": ["D4"],
+ "setup": {"click": "button:has-text(\"Start tour\")"},
+ "selectors": {
+ "overlay": "[role=\"dialog\"]",
+ "overlayRoot": "button:has-text(\"Save\")"
+ }
+ },
+ {
+ "component": "TourStep",
+ "storyId": "lab-tour--showcase",
+ "dims": ["D2"],
+ "setup": {"click": "button:has-text(\"Start tour\")"},
+ "selectors": {
+ "prev": "[role=\"dialog\"] span:text-is(\"1 of 3\")",
+ "next": "[role=\"dialog\"] span:text-is(\"1 of 3\") + div button"
+ }
+ },
{
"component": "CommandPaletteItem",
"storyId": "core-commandpaletteitem--states",