Browse Source

ref(replays): add more cases to transformSelectorQuery (#57309)

now queries with colons work:

<img width="556" alt="SCR-20231002-ljox"
src="https://github.com/getsentry/sentry/assets/56095982/b6e30518-c33c-4e81-8630-58533a2f4d4b">
Michelle Zhang 1 year ago
parent
commit
23920df643
1 changed files with 2 additions and 1 deletions
  1. 2 1
      static/app/views/replays/deadRageClick/selectorTable.tsx

+ 2 - 1
static/app/views/replays/deadRageClick/selectorTable.tsx

@@ -48,7 +48,8 @@ export function transformSelectorQuery(selector: string) {
   return selector
     .replaceAll('"', `\\"`)
     .replaceAll('aria=', 'aria-label=')
-    .replaceAll('testid=', 'data-test-id=');
+    .replaceAll('testid=', 'data-test-id=')
+    .replaceAll(':', '\\:');
 }
 
 interface Props {