Skip to content

test(browser): Add simulated mfe integration test#19768

Merged
chargome merged 1 commit intodevelopfrom
cg/mfe-integration-test
Mar 12, 2026
Merged

test(browser): Add simulated mfe integration test#19768
chargome merged 1 commit intodevelopfrom
cg/mfe-integration-test

Conversation

@chargome
Copy link
Member

@chargome chargome commented Mar 11, 2026

Adds a very simple integration test for propagating MFE names via scopes

Closes #19769 (added automatically)

ref #19470

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

sentryTest.skip();
}

await page.route('http://sentry-test-site.example/*', route => route.fulfill({ body: '{}' }));
Copy link

Choose a reason for hiding this comment

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

Route glob pattern won't match multi-segment URL paths

Medium Severity

The page.route glob pattern 'http://sentry-test-site.example/*' uses a single * which only matches a single path segment in Playwright's URL glob matching. The fetched URLs (/api/todos/1, /api/todos/2, /api/todos/3, /api/shell-config) all have multiple path segments and won't be intercepted. The pattern needs **/* (as used in dsc-txn-name-update/test.ts) to match across path separators. Without this fix, the fetches hit the real (non-existent) host instead of being mocked, risking test flakiness or timeouts.

Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, that works

@chargome chargome merged commit bb4213a into develop Mar 12, 2026
64 checks passed
@chargome chargome deleted the cg/mfe-integration-test branch March 12, 2026 10:19
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.

test(browser): Add simulated mfe integration test

2 participants