Skip to content

Instantly share code, notes, and snippets.

View jasonLaster's full-sized avatar

Jason Laster jasonLaster

View GitHub Profile
@jasonLaster
jasonLaster / reactEventListeners.ts
Created July 26, 2023 19:16
reactEventListeners.ts
/* Copyright 2023 Record Replay Inc. */
// The main React Event Listeners routine implementation
import {
Annotation,
MouseEvent as ReplayMouseEvent,
KeyboardEvent as ReplayKeyboardEvent,
TimeStampedPoint,
} from "@replayio/protocol";
diff --git a/packages/shared/test-suites/RecordingTestMetadata.ts b/packages/shared/test-suites/RecordingTestMetadata.ts
index b6d24bcbb..63606512b 100644
--- a/packages/shared/test-suites/RecordingTestMetadata.ts
+++ b/packages/shared/test-suites/RecordingTestMetadata.ts
@@ -413,7 +413,11 @@ export async function processCypressTestRecording(
const annotations = userActionEventIdToAnnotations[id];
- assert(annotations != null, `Missing annotations for test event (${command.name})`);
+ // assert(annotations != null, `Missing annotations for test event (${command.name})`);
diff --git a/src/hooks/useFetchCrashReports.ts b/src/hooks/useFetchCrashReports.ts
index a3f636d..75760b9 100644
--- a/src/hooks/useFetchCrashReports.ts
+++ b/src/hooks/useFetchCrashReports.ts
@@ -21,6 +21,13 @@ import {
import hackfix_pruneBadCrashReports from "../utils/crash-pruning";
let ids = new Set<string>();
+let cannotFindContextCount = 0;
+function matchesCannotFindContext(report: DBCrashReport) {
diff --git a/cypress.config.ts b/cypress.config.ts
index 84e63ef..aebb41d 100644
--- a/cypress.config.ts
+++ b/cypress.config.ts
@@ -9,6 +9,10 @@ export default defineConfig({
screenshotOnRunFailure: false,
video: false,
setupNodeEvents(on, config) {
+ [on, config] = require("@deploysentinel/cypress-debugger/plugin")(
+ on,
diff --git a/src/hooks/useCategorizeFilters.ts b/src/hooks/useCategorizeFilters.ts
index 31d9740..8011ebe 100644
--- a/src/hooks/useCategorizeFilters.ts
+++ b/src/hooks/useCategorizeFilters.ts
@@ -60,10 +60,10 @@ export function useCategorizeFilters(
const allReportIds = getIds(allReports);
// 1. Compute deltas
- const changedFilterIds = difference(allFilterIds, oldData.filterIds);
- const removedFilterIds = difference(oldData.filterIds, allFilterIds);
diff --git a/src/control/channel.ts b/src/control/channel.ts
index d4468114b..7d0895044 100644
--- a/src/control/channel.ts
+++ b/src/control/channel.ts
@@ -198,6 +198,14 @@ const controllerHandlers: ControllerServerHandlers = {
runRoutines();
}
+ logger.info("ProcessingFinished",{
+ routineDuration: 0,
/* Copyright 2022 Record Replay Inc. */
import { sample, sampleSize, random, flattenDeep, flatten } from "lodash";
import { MsPerSecond } from "../shared/utils";
import { defer } from "../shared/promise";
import { assert } from "../shared/assert";
import { waitForTime } from "../shared/timer";
import {
CommandMethods,
CommandParams,

User

What has to be true if the function CurrentLineHighlightSuspends is returning a div with the attribute data-test-name equal to CurrentExecutionPointLineHighlight?

function CurrentLineHighlightSuspends({
  lineNumber,
  sourceId
}) {
  const client = useContext(ReplayClientContext);
  const {

User

When will this function return null?


function CurrentLineHighlightSuspends({
  lineNumber,
  sourceId
}) {
  const client = useContext(ReplayClientContext);
diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json
index df53be109..b000905da 100644
--- a/packages/e2e-tests/package.json
+++ b/packages/e2e-tests/package.json
@@ -10,6 +10,7 @@
"test": "playwright test",
"test:chromium": "playwright test --project chromium --reporter=@replayio/playwright/reporter,line",
"test:replay-chromium": "playwright test --project replay-chromium --reporter=@replayio/playwright/reporter,line",
+ "test:record": "RECORD=true playwright test --reporter=@replayio/playwright/reporter,line",
"test:debug": "DEBUG=1 playwright test",