-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(solidjs): Add e2e tests #12328
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
feat(solidjs): Add e2e tests #12328
Conversation
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@playwright/test": "^1.43.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@playwright/test": "^1.43.1", | |
"@playwright/test": "^1.44.1", |
let's use latest here!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, and also add @sentry-internal/test-utils
as a dep, explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
}); | ||
|
||
test('sends a navigation transaction', async ({ page }) => { | ||
page.on('console', msg => console.log(msg.text())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
page.on('console', msg => console.log(msg.text())); |
|
||
test('sends a navigation transaction', async ({ page }) => { | ||
page.on('console', msg => console.log(msg.text())); | ||
const pageloadTxnPromise = waitForTransaction('solidjs', async transactionEvent => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually no need to wait on this, we can just wait for the navigation only, that should be all fine! Just go to /
and then navigate, should always emit a navgiation span either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, removed.
// transactions with the proper name once the `useLocation` hook triggers. | ||
page.on('console', msg => console.log(msg.text())); | ||
|
||
const pageloadTxnPromise = waitForTransaction('solidjs', async transactionEvent => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, no need to wait on pageload (we need to wait on the first navigation, to ensure that we test the correct thing afterwards)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweet!
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
No description provided.