Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: take testId from last opened testcase#734

Merged
Skn0tt merged 2 commits into
microsoft:mainfrom
Skn0tt:track-open-testcase
Dec 4, 2025
Merged

chore: take testId from last opened testcase#734
Skn0tt merged 2 commits into
microsoft:mainfrom
Skn0tt:track-open-testcase

Conversation

@Skn0tt

@Skn0tt Skn0tt commented Dec 4, 2025

Copy link
Copy Markdown
Member

Record at Cursor doesnt currently respect testIdAttributeName, because we don't try figuring out what's the right project. But since there's no parallelism in ReusedBrowser, and we know what's the last testcase, we have a pretty good heuristic for figuring it out!

Comment thread src/reusedBrowser.ts Outdated
private _pausedOnPagePause = false;
private _settingsModel: SettingsModel;
private _recorderModeForTest: RecorderMode = 'none';
private _openTestCase?: reporterTypes.TestCase;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we should store current test case in ReusedBrowser. Let's move it to extension instead. We can probably unify it with _testUnderDebug if needed.

@Skn0tt Skn0tt merged commit 6cf5591 into microsoft:main Dec 4, 2025
7 checks passed
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.

2 participants