Commit Graph

12 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
213e1dd1c8
rename insomnia-app/app to insomnia/src (#4491) 2022-04-20 17:42:19 +00:00
James Gatz
47d2a71279
Add GitHub OAuth for git repos (#4429)
* add sign in with github

* fix authentication url not being reset

* Add error handling for graphql query results

* move desctructuring to function arguments

* remove unused input prop

* Respect INSOMNIA_DATA_PATH for electron data regardless of environment

* fix lint error and update uuid usage

Co-authored-by: David Marby <david@dmarby.se>
2022-03-18 10:57:12 +01:00
Dimitri Mitropoulos
d6bd357573
chore(deps): update uuid (#4600) 2022-03-17 12:56:11 +00:00
Jack Kavanagh
4c657d4e5b
remove :smoke (#4597) 2022-03-16 09:36:41 +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
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
Jack Kavanagh
e768e05bfa
improve smoke test docs (#4421) 2022-02-18 12:47:41 +00: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
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
cfed59e45e
can run playwright against latest changes (#4367) 2022-01-19 11:06:28 +00: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