-
Notifications
You must be signed in to change notification settings - Fork 312
chore: Add playwright tests for app in local-only mode #1181
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🎭 Playwright Test Results
|
🎭 Playwright Test Results
|
🎭 Playwright Test Results
|
🎭 Playwright Test Results
|
E2E Test Results
|
c996183
to
ac8fd09
Compare
).toBeVisible(); | ||
}, | ||
); | ||
}); |
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.
will enable after we create a docker image in a future ticket
await expect(page.locator('[data-testid="alerts-modal"]')).toBeVisible(); | ||
}); | ||
}); | ||
}); |
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.
tests are running in local-only mode. Will re-enable once we have a docker image with full server in a future ticket
/* Retry on CI only */ | ||
retries: process.env.CI ? 2 : 1, | ||
/* Use multiple workers on CI for faster execution */ | ||
workers: undefined, |
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.
allows playwright to use as many cores that are available
use: { | ||
...devices['Desktop Chrome'], | ||
}, | ||
}, |
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.
can add more browsers later
timeout: 180 * 1000, | ||
stdout: 'pipe', | ||
stderr: 'pipe', | ||
}, |
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.
run server in local-only mode for simplicty
E2E Test Results
|
E2E Test Results
|
- Add Playwright configuration and GitHub Actions workflow - Implement test utilities and base test setup - Add E2E tests for core navigation functionality - Add comprehensive search feature tests (filters, saved searches) - Add dashboard, alerts, and chart explorer tests - Add session and trace workflow tests - Add source management tests - Update CI/CD pipeline to include E2E testing - Improve test data attributes and component accessibility cleanup and test flakiness fix workflow name update
71b361a
to
09d08cb
Compare
E2E Test Results
|
E2E Test Results
|
cc91460
to
8122ad5
Compare
739905a
to
cdcaa00
Compare
E2E Test Results❌ 1 test failed • 15 passed • 3 skipped • 124s
|
linting Cleanup unused code linting better report commenting install job deps increase timeout and adjust README Update README.md
cdcaa00
to
1065378
Compare
const rateLimiterKeyGenerator = (req: express.Request) => { | ||
return req.headers.authorization || req.ip; | ||
const rateLimiterKeyGenerator = (req: express.Request): string => { | ||
return req.headers.authorization ?? req.ip ?? 'unknown'; |
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.
linting failure fix
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.
no comments - this is great!
@@ -0,0 +1,190 @@ | |||
# End-to-End Testing |
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.
Nice README!
nit: It could be nice to have a small section in the CONTRIBUTING.md
's testing section that points contributors to this document
- Node.js (>=22.16.0 as specified in package.json) | ||
- Dependencies installed via `yarn install` | ||
- Development server running (automatically handled by test configuration) |
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.
This extra step seemed to be required for me
- Node.js (>=22.16.0 as specified in package.json) | |
- Dependencies installed via `yarn install` | |
- Development server running (automatically handled by test configuration) | |
- Node.js (>=22.16.0 as specified in package.json) | |
- Dependencies installed via `yarn install` | |
- Playwright installed via `yarn playwright install` in the `packages/app` directory | |
- Development server running (automatically handled by test configuration) |
Fixes: HDX-2442