Commit Graph

326 Commits

Author SHA1 Message Date
David Marby
53816f1eb9 version packages lib@2.5.2 2022-03-09 13:21:56 +01:00
Jack Kavanagh
1f05683fad
Chore/upgrade-electron-17 (#4529)
* bump node, electron, libcurl

* bump electron-builder

* stub performance, because inso imports react

* bump @types/node

* match up builder versions

* Disable consent prompts for oidc server

* bump electron and libcurl to latest

* waitForCookies for oauth tests

* Bump NodeJS to 16.13.0

* removes node 14 hack for BufferEncoding

* Replace oidc-provider html interaction pages with a simple html form

* make document cookie wait explicit

Co-authored-by: David Marby <david@dmarby.se>
2022-03-07 13:10:35 +00:00
Jack Kavanagh
8585eea9e6
electron v15 pre-upgrade refactoring (#4524)
* now with 100% fat free cancellation

Co-authored-by: James Gatz <jamesgatzos@gmail.com>

* unblock electron 15

* fix cookielist and temp fix curl types

* fix types

* fix inso

* default to verbose inso test

* implement readdata function

* fix test

* revert test changes

* isomorphic cancel

* reduce typing issues

* curl types

* turns out the tests were wrong

* handle errors

* remove unused inso mock

* remove request delay

* fix lint and add logs

* Revert "remove request delay"

This reverts commit f07d8c90a7a7279ca10f8a8de1ea0c82caa06390.

* simplify and add cancel fallback

* skip cancel test

* playwright is fast and insomnia is slow

* trailing spaces are serious yo

* cancel is flake town

* hmm

* unblock nunjucks and storeTimeline

* fix nunjucks tests

* preload writeFile

* oops forgot to remove the reload

* debugging CI takes all day, log stuff and pray

* also warn if nunjucks is being lame

* Stop using environment variables

* revert debugging logs

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>
2022-03-03 13:42:04 +00:00
David Marby
6bd1173c7a Merge branch 'release/2022.1.0' into develop 2022-03-01 18:45:22 +01:00
David Marby
2b802ceb0d version packages lib@2.5.1 2022-03-01 18:21:42 +01:00
David Marby
2dd8ef20bb version packages lib@2.5.1-beta.2 2022-03-01 18:05:04 +01:00
David Marby
a9fc51fbe5 version packages lib@2.5.1-beta.1 2022-03-01 17:44:30 +01:00
David Marby
a19466fc97 version packages lib@2.5.1-beta.0 2022-03-01 17:15:38 +01:00
David Marby
66ea00edd8 version packages lib@2.5.0 2022-03-01 15:24:59 +01:00
David Marby
1092940947
Remove storybook (#4535) 2022-03-01 13:52:10 +01:00
David Marby
5af79c7486
Create smoketests for oauth flows (#4511)
* Move basic auth routes to a separate file

* Stop slowing requests down artificially

* Add initial oauth routes

* Mount oidc routes under /oidc

* Enable all forms of oauth that Insomnia supports

* Add oauth request collection fixture

* Update playwright config

* Use 127.0.0.1 instead of localhost

* simple oauth2 test

* Make the playwright extension work

* Move oauth tests to a separate file

* Test all oauth flows

* Mark test as slow

* Wait for load state for new pages

* Use locators consistently

* Add playwright to recommended extensions

* Add instructions for how to use the playwright extension

* update selectors and use fill

* Fix markdown lint

Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
2022-02-28 16:28:02 +01:00
James Gatz
ae45cfd041
upgrade to playwright v1.19 (#4517) 2022-02-24 11:11:46 +01:00
Jack Kavanagh
e768e05bfa
improve smoke test docs (#4421) 2022-02-18 12:47:41 +00:00
Filipe Freire
e31307c61e
chore: Improvements to playwright smoke checks (#4480)
* Enable playwright parallelism

Plus, move the cancel request test into its own separate test to reduce flakiness.

* Change num of playwright workers on GH actions back to 1

* Change 200 OK assertion

+ Add assertions to PDF canvas

+ Add assertion to Raw Data preview.

* Add assertions to response body elements

* Undo parallel suite for app.test.ts

* Remove parallelism workers from playwright.config.ts

* Code review improvements

Co-Authored-By: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-Authored-By: James Gatz <jamesgatzos@gmail.com>

* Code review improvements

Co-Authored-By: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-Authored-By: James Gatz <jamesgatzos@gmail.com>

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-02-17 17:27:29 +00:00
Dimitri Mitropoulos
0b7a61fdee Merge branch 'release/2022.1.0-beta.0' into develop 2022-02-15 09:13:42 -05:00
James Gatz
e1b4bb2def
Adds tracing with Playwright (#4439)
* base tracing with playwright

* use github reporter on CI

* Use the config to capture traces

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2022-02-10 14:48:32 +01:00
Dimitri Mitropoulos
8490bad55c version packages lib@2.5.0-beta.1 2022-02-08 11:39:25 -05:00
Dimitri Mitropoulos
081fb995a6 version packages lib@2.5.0-beta.0 2022-02-08 11:37:36 -05:00
Dimitri Mitropoulos
344f0144a5
all current dependabot PRs (#4444) 2022-02-04 15:01:19 +00:00
Filipe Freire
45d9d4ece5
Add /cookies endpoint to smoke test express server (INS-1342)
* add /cookies endpoint to smoke test mock server

* add smoke test steps for /cookies endpoint

* Update packages/insomnia-smoke-test/tests/app.test.ts

Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2022-02-04 12:20:21 +00:00
Dimitri Mitropoulos
8f409a38fc
updates concurrently, lerna, eslint (#4428) 2022-02-02 11:21:25 -05:00
Filipe Freire
ee04eb0c7d
add test for URL being focused on first time user experience (#4385)
* add test for URL being focused on first time user experience

* fix lint

* rm commented code
2022-01-26 12:31:01 +00:00
Dimitri Mitropoulos
4940348dd9
removes insomnia designer migration code (#4404) 2022-01-25 11:14:24 -05:00
James Gatz
ccf43c260e
Create a base playwright test with fixtures (#4390)
* Create a base playwright test with fixtures

* Remove waiting for 'window' event

It blocks debugging and is not adding extra confidence since .firstWindow allready works like that.

* Remove unused type and manual page close fn

* Update path checks for dev

* Only close the electron app in darwin
2022-01-24 10:26:53 +01:00
Jack Kavanagh
722044ed33
can cancel request (#4366) 2022-01-19 11:35:03 +00:00
Jack Kavanagh
cfed59e45e
can run playwright against latest changes (#4367) 2022-01-19 11:06:28 +00:00
Dimitri Mitropoulos
ecbb1ce1eb
create background resources on first launch (#4314)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-12-22 15:13:23 -05:00
Jack Kavanagh
21ab3dd081
Chore/upgrade-electron-12 (#4232)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-12-21 13:03:36 -05:00
Jack Kavanagh
8cea5edc26
Chore: replace spectron with playwright (#4305)
* add smoke test fixture

* respect INSOMNIA_DATA_PATH override in CI

* add playwright

* remove spectron

* move CLI tests after app smoke tests in CI

* remove onboarding skip

* random path feedback

* npx feedback

* remove DATA_PATH override

* remove step from import process

* cleanup

* restore readme

* move specs to tests

* feedback on DESIGNER_DATA_PATH

* remove skipLibCheck

* last mention of spectron

* fix windows npm run test:smoke:build

* DATA_PATH override is required

* github CI is slow sometimes
2021-12-17 13:05:14 +01:00
Dimitri Mitropoulos
074d502b8b
removes analytics activity and create a modal (#4310) 2021-12-15 23:58:00 -05:00
Opender Singh
dc4bc1ae48
Remove NPM build dependency for lerna packages (#4306) 2021-12-16 01:08:45 +01:00
Dimitri Mitropoulos
2edfdee345
removes onboarding activity and associated handling code (#4307) 2021-12-15 21:15:25 +00:00
Jack Kavanagh
b2dd09341c
cache lint (#4302) 2021-12-10 23:10:20 +00:00
Opender Singh
dc442174c0 version packages lib@2.4.1 2021-12-09 10:19:11 +13:00
Opender Singh
f1284ed469 version packages lib@2.4.1-beta.1 2021-12-07 07:11:47 +13:00
James Gatz
0648989abf
fix(import): Importing from the projects view should respect the forc… (#4058) 2021-11-17 10:44:19 +01:00
Opender Singh
e02e5d404f version packages lib@2.4.0 2021-10-28 09:47:44 +13:00
Opender Singh
b7248025e7 version packages lib@2.4.0-alpha.1 2021-10-21 22:15:57 +13:00
Opender Singh
107a37fb92
Add smoke test for XML response and filter (#4085)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-10-18 00:49:30 +00:00
Opender Singh
9fb54ec187 version packages lib@2.3.3-alpha.4 2021-10-15 13:12:49 +13:00
Opender Singh
06b873eb27 version packages lib@2.3.3-alpha.3 2021-10-15 11:19:53 +13:00
Jack Kavanagh
83477364c6
remove convenience bundle (#4079)
* remove kong bundle

* restore bundle to migration delete list
2021-10-08 07:00:39 +00:00
Opender Singh
615287ccfc
Create single inso executable using pkg (#4049)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-10-06 22:01:43 +00:00
Jack Kavanagh
f4b859832c
Consistent wording of Dev Portal (#4073)
* change copy in box

* Consistent Dev Portal wording

* skips test with breadcrumb comment
2021-10-06 10:29:48 +02:00
Dimitri Mitropoulos
376700826e
fixes all react/prefer-stateless-function warnings (#4019) 2021-09-15 16:16:04 -04:00
Opender Singh
7ffc391428
add eslint rules for semi colons (#3989)
* add rules for semi colons

* run lint fix

* remove invalid eslint disable
2021-09-01 10:50:26 -04:00
Opender Singh
59827aad84 Merge branch 'release/2021.5.1' into develop 2021-08-31 09:52:45 +12:00
David Marby
d4048846aa version packages lib@2.3.2 2021-08-30 22:47:18 +02:00
Dimitri Mitropoulos
422d5a809c
adds markdown linting (#3931) 2021-08-27 15:44:01 +12:00
Opender Singh
376ac03703 version packages lib@2.3.1 2021-08-26 08:15:00 +12:00
Opender Singh
4d0ec3f7b2 version packages lib@2.3.1-alpha.3 2021-08-23 12:55:10 +12:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Opender Singh
1dd421e4f0 version packages lib@2.3.1-alpha.2 2021-08-16 12:59:26 +12:00
Dimitri Mitropoulos
407432aa02
adds eslint-config-helpers (#3912) 2021-08-12 18:01:54 -04:00
Opender Singh
0debbe9c9c version packages lib@2.3.1-alpha.1 2021-08-10 16:17:55 +12:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Dimitri Mitropoulos
70d5797d94
use optional chaining (#3867) 2021-07-30 15:32:08 +12:00
Opender Singh
8b011d68cf
Types for DnD, reuse and connect sidebar components to redux (#3853) 2021-07-29 05:12:59 +00:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
John Chadwick
b07cd1cf16
Upgrade Electron to 11.2.3. (#3798)
* Upgrade Electron from 9.3.5 to 11.2.3.

* bump version

* update preid to alpha

* version packages lib@2.3.1-alpha.0

* Downgrade electron-builder to 22.11.3.

We tried to upgrade electron-builder to 22.11.7, but this fails
because electron-builder 22.11.4 introduces imports into fs/promises.
This module is only available in Node 14+, so we have to stick to
22.11.3 until we update to Electron 12.

* Revert npm script changes from alpha release.

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-07-16 13:35:32 -07:00
Opender Singh
d5a1f44f15
Don't auto create a workspace if none exist (#3776) 2021-07-07 08:30:50 +12:00
Opender Singh
837cadebaf
Remove the need for an active workspace to always exist (#3494) 2021-06-30 07:47:17 +00:00
Opender Singh
3998e8b489 Merge branch 'release/2021.4.0-stable' into develop 2021-06-30 11:03:39 +12:00
Opender Singh
c2c41f3d84 version packages lib@2.3.0 2021-06-29 21:44:26 +12:00
Opender Singh
af8e59b4ea version packages lib@2.3.0-beta.4 2021-06-23 15:54:20 +12:00
Opender Singh
946deb5ae2
Increase smoke test spectron timeouts (#3440) 2021-06-03 20:43:15 +12:00
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Josh Soref
9006babd38
fix spelling (#2976) 2021-05-25 12:16:43 -04:00
Opender Singh
88ed96fc47 merge release branch with develop and resolve conflicts 2021-05-25 09:30:09 +12:00
David Marby
34b8c17260 publish npm packages lib@2.3.0-beta.2 2021-05-19 14:50:58 +02:00
Opender Singh
5fa8f0069d
Enable ESLint & TS for smoke tests (#3397)
* remove babel and add configs

* add ts-node

* lint scripts

* eslint override

* remove type module

* add expect errors

* update js files to ts

* fix electron import

* remove errors

* update readme

* add build step

* typesync

* add eslintignore
2021-05-19 07:49:48 -04:00
Opender Singh
b2040dacd2 publish npm packages lib@2.3.0-beta.0 2021-05-19 09:21:52 +12:00
Dimitri Mitropoulos
e161f45b06
ResponseTimer callstack exceeded (#3386)
* no default export (prepping for hooks)

* makes logic match other implementation

note that above in `componentDidUpdate` it uses `<= 0`, whereas here it uses `> 0` but then only checks for false.

Also, logically, there's no way to ever get `aria-hidden="true"` since it returns early so that entire attribute can just be removed.

* removes fake private class member syntax

this is moving to hooks anyway, but in the meantime...

* undoes calling identical code twice in a row...

* condenses class methods to prepare for hooks

* hooks refactor

fairly faithful to the original, this attempts to just refactor to hooks.  this exposes, again, the fact that we're setting state within useEffect.

* removes 200 ms offset for response time

so that, now, you know, the time reported is the actual time.

* adds logging for response timer lage

* removes timer logging and `responseTime` prop after PR discussion

it's definitely fruitful, but the fix for the callstack exceeded is what needs to be the focus.

* removes shadowed variable per PR feedback

* reinstates and documents 200ms compensation

* add delay endpoint to example server

* Update packages/insomnia-app/app/ui/components/response-timer.tsx

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-17 18:58:05 -05:00
Opender Singh
1ff28abb11
chore: add repository, bug urls, and license to plugins missing it (#3379) 2021-05-13 07:31:33 -04:00
Dimitri Mitropoulos
78c4a18f0b
makes all package.json author fields consistent (#3338)
* makes all package.json author fields consistent

* adds Preston Alvarado as a contributor per review feedback.
2021-05-12 08:31:07 -04:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Opender Singh
14ebadd8f9 publish npm packages lib@2.2.35 2021-04-29 08:50:33 +12:00
Opender Singh
69d7514095
Tags for all of the plugins! (#3328)
* feat: add tags to regular plugins

* feat: plugin support for request validator plugins

* feat: add tags to security plugins

* feat: security plugins detecting the expected property

* chore: don't force publish and bump version

* publish npm packages lib@2.2.35-beta.4
2021-04-28 08:14:49 +12:00
Bruno Fusieger
1ea4b4b81f
Fix license metadata (#3233)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-23 08:21:22 +12:00
Opender Singh
141685488d publish npm packages lib@2.2.35-beta.3 2021-04-22 11:14:08 +12:00
Opender Singh
6022ea2493 publish npm packages lib@2.2.35-beta.2 2021-04-22 11:10:30 +12:00
Opender Singh
d90328e406 publish npm packages lib@2.2.35-beta.1 2021-04-22 11:01:51 +12:00
Opender Singh
ba2871958b lib@2.2.31 2021-03-23 11:48:55 +13:00
Opender Singh
7ca6c09c44
Deploy to portal smoke test works again (#3198) 2021-03-18 10:11:13 +13:00
Mike Ellan
8c724a30ed
Updating readme for single app merge (#3197) 2021-03-17 12:30:21 +13:00
Mike Ellan
f1539e2b40
On create nav to new (#3174) 2021-03-10 11:55:45 +13:00
Opender Singh
3a16a9daca lib@2.2.30 2021-03-05 08:56:48 +13:00
Opender Singh
23c05c4bb9
Pluralize document count label (#3143) 2021-03-04 11:51:38 +13:00
Opender Singh
a7784d4160
Fix & add smoke tests (#3136)
* chore: refactor

* chore: fix one test

* chore: fix all tests

* chore: fix all existing tests

* chore: add prompting tests

* chore: ignore flaky test for now
2021-03-04 09:00:56 +13:00
Mike Ellan
4e09e684d2
Migration flow stylistic updates (#3132) 2021-03-03 15:43:37 +13:00
Opender Singh
5ba91ceb21 lib@2.2.29 2021-03-03 11:12:19 +13:00
Opender Singh
6f3d2666f8
Add option to disable migrating workspaces (#3108) 2021-02-26 12:01:46 +13:00
Opender Singh
f654f49dfb
Onboarding flow ent to end tests and automatic screenshots on failure (#3106)
Co-authored-by: David Marby <david@dmarby.se>
2021-02-26 09:39:59 +13:00
Opender Singh
4f062dbb28
Remove more designer and APP_ID code (#3040) 2021-02-03 20:07:11 +13:00
Opender Singh
26fb78ab99
Remove Core and Designer specific cases (#3034) 2021-02-03 12:19:22 +13:00
Opender Singh
c46a7c4c4c
Smoke and Unit testing documentation (#2947)
* chore: smoke testing documentation

* chore: unit testing documentation

* chore: address comments and add a section on element selection

* chore: replace screenshot with code block
2020-12-18 00:54:30 +13:00
Opender Singh
adb79a720d
Serve csv and pdf files locally (#2946)
Co-authored-by: David Marby <david@dmarby.se>
2020-12-17 13:10:01 +13:00
dependabot[bot]
dd2017d8b8
Bump ini from 1.3.5 to 1.3.8 (#2940) 2020-12-15 05:22:01 +00:00
Opender Singh
fa4306c5d8
Introduce E2E tests for inso run test (#2917) 2020-12-08 13:03:06 +13:00
Opender Singh
98d2cf90c7 Merge window-shim fix 2020-12-08 11:32:18 +13:00
Opender Singh
e4450405ca lib@2.2.27 2020-12-08 10:55:36 +13:00
Opender Singh
cf6dde4853
Basic auth e2e test (#2671)
* Add test

* WIP

* Passes

* Update

* Done

* Update

* Fix

* Remove id

* Works

* Run more tests

* Hmm

* await

* mostly works

* i sure hope this works in CI because it worked 40 times on my computer...

* add comments

* feat: replace tinyhttp with express and add basic auth route

* fix: response content-type header

* feat: works

* feat: this should work

* fix: slow down all requests

* fix: force refresh

* test: wait for timeline viewer to contain text after clicking it

* remove: delete oas3.yaml spec as it is redundant for now
2020-12-08 09:12:50 +13:00
Opender Singh
aeafe4a7c9
Import a spec and execute a request (#2887)
* feat: add swagger2 for prism

* feat: add test stub

* feat: can import from clipboard

* feat: click folder, request and send

* chore: add comments

* fix: now it actually breaks

* fix: typo

* fix: update webdriver implicit timeout

* feat: replace prism with tinyhttp (similar to express)
2020-12-05 10:47:04 +13:00
David Marby
27320ad04a Merge branch 'release/2020.5' into develop 2020-12-02 15:35:53 +01:00
Opender Singh
dc526d845d
fix: remove request id validation (#2885) 2020-12-02 09:29:30 +13:00
Opender Singh
f5a0e9eb7c lib@2.2.26 2020-11-26 16:12:14 +13:00
Opender Singh
2392c8117a
E2E test to install and consume a plugin (#2847) 2020-11-25 15:26:00 +13:00
Opender Singh
8d88cf9c69
An effort to figure out why spectron sometimes hangs on Windows CI (#2698) 2020-10-08 15:48:20 +13:00
Opender Singh
8a6c5cc9b3
Run tests for builds vs packages using env variable (#2660) 2020-09-25 08:14:54 +12:00
Opender Singh
3e7be75a4f
Refactor and reuse app launch logic, launch app with a fresh data directory, prepare for tests in release pipeline (#2659) 2020-09-25 07:55:27 +12:00
Opender Singh
567ddd2b70
Add babel to smoke tests (#2658) 2020-09-25 07:23:23 +12:00
Opender Singh
4d17a92f73
Improve reliability of E2E tests (#2654)
Co-authored-by: David Marby <david@dmarby.se>
2020-09-24 10:49:25 +12:00
Opender Singh
47e68b228f lib@2.2.25 2020-09-23 10:38:00 +12:00
Opender Singh
0dce7af5e1 Merge branch 'develop' of github.com:Kong/insomnia into release/2020.4.1 2020-09-23 10:29:51 +12:00
Opender Singh
5d28501b34
Update debounce timeout pause (#2651) 2020-09-23 08:06:54 +12:00
Opender Singh
c2d989e1e0 lib@2.2.24 2020-09-22 11:45:33 +12:00
Opender Singh
4885d00e0f
Update pdfjs-dist (#2645)
* add e2e test and update pdfjs version and interface changes

* Remove test focus

* Simplify

* Update test because canvas sizes vary

* Update
2020-09-21 20:45:36 +12:00
Opender Singh
2132e59f2a
CodeMirror debounce wait for smoke tests (#2644) 2020-09-21 18:17:31 +12:00
dependabot[bot]
3314c23ecf
Bump papaparse from 4.6.3 to 5.2.0 in /packages/insomnia-app (#2590)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-09-18 06:05:53 +12:00
Opender Singh
1b416d8027
Release branch for 2020.4.0 (#2576) 2020-09-15 08:55:18 +12:00
Opender Singh
3bcbd24c8a
Add designer smoke tests to CI (#2549) 2020-08-25 11:27:44 +12:00
Opender Singh
0319547f65
Separate designer vs core e2e tests (#2545) 2020-08-25 10:49:29 +12:00
Opender Singh
3c345d4be1
Mock server for e2e tests using Prism (#2544)
Co-authored-by: David Marby <david@dmarby.se>
2020-08-25 10:13:29 +12:00
Opender Singh
deaded4674
Add e2e Core tests to PR workflow (#2536)
Co-authored-by: David Marby <david@dmarby.se>
2020-08-25 08:40:40 +12:00
Opender Singh
c3678d6e37
Build and package to a folder prefixed by the application id (#2537) 2020-08-22 17:59:56 +12:00
Opender Singh
694217dbb1
Add spectron with basic tests (#2531) 2020-08-21 08:08:47 +12:00