Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Port captureException and captureMessage tests from karma runner #11412

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

AbhiPrasad
Copy link
Member

I want to remove the karma/mocha based tests in the browser package. To accomplish this, I'll be porting 1 test suite a day from the old integration tests to playwright. Today is Day 1: packages/browser/test/integration/suites/api.js

We have decent coverage around singular calls to these methods, so I just added the tests that validate calling captureException and captureMessage multiple times.

I also fixed a spelling mistake with dev-packages/browser-integration-tests/suites/public-api/captureException/linkedErrors/subject.js, linkedErrrors -> linkedErrors

ref #11084

@AbhiPrasad AbhiPrasad requested a review from a team April 3, 2024 21:39
@AbhiPrasad AbhiPrasad self-assigned this Apr 3, 2024
@AbhiPrasad AbhiPrasad requested review from stephanie-anderson and s1gr1d and removed request for a team April 3, 2024 21:39
@AbhiPrasad AbhiPrasad force-pushed the abhi-port-capture-tests branch from 76dde63 to ad71c8a Compare April 3, 2024 22:17
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Great!

@AbhiPrasad AbhiPrasad merged commit e307608 into develop Apr 4, 2024
90 checks passed
@AbhiPrasad AbhiPrasad deleted the abhi-port-capture-tests branch April 4, 2024 14:22
AbhiPrasad added a commit that referenced this pull request Apr 5, 2024
I want to remove the karma/mocha based tests in the browser package. To
accomplish this, I'll be porting 1 test suite a day from the old
integration tests to playwright. Today is Day 2:
`packages/browser/test/integration/suites/breadcrumbs.js`

This adds console and history breadcrumb tests (which didn't exist
before), and expands upon the dom and xhr/fetch tests, and cleans up
some code here and there as well.

ref #11084
day 1: #11412
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
getsentry#11412)

I want to remove the karma/mocha based tests in the browser package. To
accomplish this, I'll be porting 1 test suite a day from the old
integration tests to playwright. Today is Day 1:
`packages/browser/test/integration/suites/api.js`

We have decent coverage around singular calls to these methods, so I
just added the tests that validate calling `captureException` and
`captureMessage` multiple times.

I also fixed a spelling mistake with
`dev-packages/browser-integration-tests/suites/public-api/captureException/linkedErrors/subject.js`,
`linkedErrrors` -> `linkedErrors`

ref getsentry#11084
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
I want to remove the karma/mocha based tests in the browser package. To
accomplish this, I'll be porting 1 test suite a day from the old
integration tests to playwright. Today is Day 2:
`packages/browser/test/integration/suites/breadcrumbs.js`

This adds console and history breadcrumb tests (which didn't exist
before), and expands upon the dom and xhr/fetch tests, and cleans up
some code here and there as well.

ref getsentry#11084
day 1: getsentry#11412
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