Commit Graph
6778 Commits
Author SHA1 Message Date
Bob Qiu de50ae86c6 Add tests and YAML configurations for environment variable sourcing and response handling
- Introduced new YAML files for global environments, project environment sources, and environment cascade collections.
- Implemented tests for variable source levels, modal editing, tooltip behavior, and response downloads.
- Enhanced pre-request scripts to handle client certificates and proxy updates.
- Verified caching behavior for prompt tags and response tag trigger behaviors.
2026-11-04 17:33:06 +08:00
Bob QiuandClaude Sonnet 5.5 2ab7c5c2d5 test(insomnia-test): add http-request, cookie and environment specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:33:06 +08:00
Bob QiuandClaude Sonnet 5.5 46c64d5c2c fix(insomnia-test): remove conditionals from toolbar and runner specs
Replace the ternary and the continue-in-loop flagged by playwright/no-conditional-in-test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:33:06 +08:00
Bob Qiu 0ff6543a6f feat(insomnia-test): enhance credential menus and improve spec handling 2026-11-04 17:33:06 +08:00
Bob QiuandClaude Sonnet 5.5 5902124c44 style(insomnia-test): sort imports after switching to @package alias
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 d23cfd967c refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 dc4c174458 fix(insomnia-test): use import.meta.dirname instead of __dirname in ESM specs
insomnia-test is "type": "module", so __dirname is undefined and
`playwright test --list` collected 0 tests, failing the Shard Matrix job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 a979372a58 test(insomnia-test): adapt specs to ResponseView statusBar/preview
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 56d48c39cf test(insomnia-test): use SpecPage, ProjectPage and PreferencesVaultPage in workspace, document, app and preferences specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 a86512c34a test(insomnia-test): add workspace, document, runner, mock-server, app and preferences specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 8a7fe591e6 fix(insomnia-test): match gRPC Stream/Commit buttons without exact name
The buttons render a Font Awesome icon whose glyph is part of the
accessible name ("Stream +", "Commit "), so exact matching never hit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 e81dce0d75 style(insomnia-test): sort imports after switching to @package alias
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 897a5b74fd refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 fc113b8daf fix(insomnia-test): use import.meta.dirname instead of __dirname in ESM specs
insomnia-test is "type": "module", so __dirname is undefined and
`playwright test --list` collected 0 tests, failing the Shard Matrix job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 7a03543846 test(insomnia-test): adapt specs to ResponseView statusBar/preview
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 a95b302250 test(insomnia-test): add graphql, grpc, websocket, socket.io, event-stream and mcp specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 2ef62e5af4 fix(insomnia-test): remove conditional from key-value blank row spec
Check blankness with every() instead of a boolean expression flagged by playwright/no-conditional-in-test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob Qiu 86b3953a78 test(insomnia-test): update secure cookie test to use resolving proxy host 2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 3595220203 style(insomnia-test): sort imports after switching to @package alias
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:30 +08:00
Bob QiuandClaude Sonnet 5.5 2e51f7988d refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 9fc0aca923 test(insomnia-test): adapt specs to ResponseView statusBar/preview
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 6f807860ce fix(insomnia-test): make specs loadable under ESM so playwright --list works
Replace __dirname with import.meta.dirname and import insomnia-data enums
as types only (the package is ESM-only at runtime), which made
`playwright test --list` fail in the shard matrix job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 d8c9a9c0d6 test(insomnia-test): set query-params spec's params via bulk edit to avoid flaky row saves
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 2c6b9edf9f fix(insomnia-test): expect actual render-error preview for custom template option
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 5e72765e25 fix(insomnia-test): remove isVisible/innerText race when reading variable modal
readVariableModal checked row.isVisible() then awaited row.innerText(); when the
async Source recompute unmounted the row in between, innerText waited 30s.
Read an atomic DOM snapshot and wait for it to settle, and wait for the custom
template preview in the modal-editing spec.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob Qiu f2ff792917 refactor(variable-source-levels): reorder type imports for clarity 2026-11-04 17:32:29 +08:00
Bob Qiu 88fc329539 Add tests and YAML configurations for environment variable sourcing and response handling
- Introduced new YAML files for global environments, project environment sources, and environment cascade collections.
- Implemented tests for variable source levels, modal editing, tooltip behavior, and response downloads.
- Enhanced pre-request scripts to handle client certificates and proxy updates.
- Verified caching behavior for prompt tags and response tag trigger behaviors.
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 68da894192 test(insomnia-test): add http-request, cookie and environment specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:29 +08:00
Bob QiuandClaude Sonnet 5.5 9e1ca41cbb fix(insomnia-test): match gRPC Stream/Commit buttons without exact name
The buttons render a Font Awesome icon whose glyph is part of the
accessible name ("Stream +", "Commit "), so exact matching never hit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 19ee296237 style(insomnia-test): sort imports after switching to @package alias
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 6baafb894e refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 046a3ee8bf fix(insomnia-test): use import.meta.dirname instead of __dirname in ESM specs
insomnia-test is "type": "module", so __dirname is undefined and
`playwright test --list` collected 0 tests, failing the Shard Matrix job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 f9f14505a4 test(insomnia-test): adapt specs to ResponseView statusBar/preview
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 cc13d6b7bb test(insomnia-test): add graphql, grpc, websocket, socket.io, event-stream and mcp specs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:27 +08:00
Bob QiuandClaude Sonnet 5.5 3430edb760 refactor(insomnia-test): reuse component layer in page objects
Replace hand-written dialog/grid/menu/tab/toggle locators in pages with
the existing ModalComponent, TableComponent, DropdownComponent,
TabsComponent, PressedToggleComponent, SwitchComponent, BannerComponent,
BreadcrumbComponent, EnvironmentPickerComponent and TooltipComponent.
Behavior-preserving: existing locators are passed as component roots
where semantics differ.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 17:32:17 +08:00
Bob Qiu 34d71052c4 chore: align test/e2e-2-http-cookie-env with updated base branch 2026-11-04 14:18:58 +08:00
Bob QiuandClaude Sonnet 5.5 6fc45389bc fix(insomnia-test): import FlowContext from misc in mcp-client flow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:58 +08:00
Bob Qiu e995d0c0bd chore: align test/e2e-2-http-cookie-env with updated base branch 2026-11-04 14:18:58 +08:00
Bob QiuandClaude Sonnet 5.5 fa56855929 test(insomnia-test): align 2-http-cookie-env with pruned e2e-1 base
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:58 +08:00
Bob QiuandClaude Sonnet 5.5 3249565bae test(insomnia-test): align 2-http-cookie-env with pruned e2e-1 base
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 4874ab4e4b fix(insomnia-test): remove conditional from key-value blank row spec
Check blankness with every() instead of a boolean expression flagged by playwright/no-conditional-in-test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob Qiu 6b0c17f5b4 test(insomnia-test): update secure cookie test to use resolving proxy host 2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 205d5d8d8f style(insomnia-test): sort imports after switching to @package alias
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 d2c10cf4ad refactor(insomnia-test): use @package alias for cross-directory imports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 83cba3d760 test(insomnia-test): adapt specs to ResponseView statusBar/preview
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 4d3805717c fix(insomnia-test): make specs loadable under ESM so playwright --list works
Replace __dirname with import.meta.dirname and import insomnia-data enums
as types only (the package is ESM-only at runtime), which made
`playwright test --list` fail in the shard matrix job.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 03d2151869 test(insomnia-test): set query-params spec's params via bulk edit to avoid flaky row saves
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 5f216b0ce5 fix(insomnia-test): expect actual render-error preview for custom template option
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob QiuandClaude Sonnet 5.5 680276b11f fix(insomnia-test): remove isVisible/innerText race when reading variable modal
readVariableModal checked row.isVisible() then awaited row.innerText(); when the
async Source recompute unmounted the row in between, innerText waited 30s.
Read an atomic DOM snapshot and wait for it to settle, and wait for the custom
template preview in the modal-editing spec.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 14:18:57 +08:00
Bob Qiu de7948b8ae refactor(variable-source-levels): reorder type imports for clarity 2026-11-04 14:18:57 +08:00