Skip to content

fix: use RAF timing in rrweb snapshots#1103

Merged
shadowusr merged 1 commit into
masterfrom
users/shadowusr/TESTPLANE-576
Jun 23, 2025
Merged

fix: use RAF timing in rrweb snapshots#1103
shadowusr merged 1 commit into
masterfrom
users/shadowusr/TESTPLANE-576

Conversation

@shadowusr

Copy link
Copy Markdown
Member

No description provided.

});

// @ts-expect-error
window.rrweb.record.addCustomEvent("color-scheme-change", {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут только форматирование изменилось! Надо смотреть только на строки 22-26 и 48-63

@pkg-pr-new

pkg-pr-new Bot commented Jun 20, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1103

commit: 4f3162e

window.lastProcessedRrwebEvent = -1;
// @ts-expect-error
window.rrwebEvents = [];
window.__testplaneTiming = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we always have "__geminiCore" in our global scope from client-bridge?
If yes, then maybe we should stick to using existing "__geminiCore" instead of creating new variables?
Some of our big projects track extra global variables and would throw error here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We completely re-write __geminiCore in client bridge. Also, we store time travel snapshots in separate field. I suggest refactoring all of the injected data in a separate PR.

@shadowusr
shadowusr force-pushed the users/shadowusr/TESTPLANE-576 branch from c0d5173 to 4f3162e Compare June 23, 2025 15:39
@shadowusr
shadowusr merged commit 804a131 into master Jun 23, 2025
5 checks passed
@shadowusr
shadowusr deleted the users/shadowusr/TESTPLANE-576 branch June 23, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants