Archived
1
0
Commit Graph

300 Commits

Author SHA1 Message Date
07d682392e Merge pull request #3169 from cdr/jsjoeio/add-terminal-e2e-test
feat(testing): add e2e tests for code-server and terminal
2021-04-26 15:16:06 -07:00
83746c8a1f refactor: remove null check in register.ts options.base
Inside registerServiceWorker, we were originally using the nullash coalescing
operator to check if options.base was null or undefined. However, I realized
this check is not necessary.

If you look at getOptions' return value, we return an object with a key "base"
which is of type "string". We get that value by calling resolveBase which always
returns a string.

As a result, we didn't need to check if options.base was null or undefined
because it never can be.
2021-04-23 17:09:03 -07:00
7bfdd13cb3 refactor: tmpdir and add to test utils 2021-04-23 16:40:39 -07:00
6f2709bcaa feat: add tests for registerServiceWorker 2021-04-23 16:31:56 -07:00
b0ecff338f refactor: globalSetup to use CodeServer model 2021-04-23 14:35:33 -07:00
cb65590b98 refactor: move tmpdir into src/node/constants 2021-04-23 14:35:32 -07:00
cc99fddf24 feat: add test for terminal echo to file 2021-04-23 14:35:32 -07:00
2bf0a0e76e refactor: fix tests to check visibility correctly 2021-04-23 14:35:31 -07:00
2665a4f61b feat: add CodeServer page object for e2e tests 2021-04-23 14:35:31 -07:00
f80d5c3764 refactor: rateLimiter.canTry logic to check >= 1 2021-04-19 13:14:19 -07:00
958f01262b refactor: check errorMessage in login e2e test 2021-04-19 11:11:52 -07:00
a3f18d6158 refactor: change limiter.Try() to .removeToken() 2021-04-19 10:57:50 -07:00
7928dc2bff feat: add test for limiter.canTry() 2021-04-19 10:41:00 -07:00
a8719e1f79 refactor: change config to save all e2e videos 2021-04-19 10:40:59 -07:00
1e6f4f2a14 feat(testing): add test for rate limiter 2021-04-19 10:40:59 -07:00
83cfbf82cf feat: increase timeout for playwright tests 2021-04-19 10:40:59 -07:00
faaa0a9e60 feat(testing): add e2e tests for password 2021-04-19 10:40:59 -07:00
ebbabc6e04 refactor(testing): combine loginPage with login 2021-04-19 10:40:58 -07:00
58e17c5e50 feat(testing): add tests for RateLimiter 2021-04-19 10:40:58 -07:00
450fcd5ba7 refactor: pass all args to test-e2e script 2021-04-15 11:46:45 -07:00
d6f0725399 fix: update path for e2e videos 2021-04-15 11:46:45 -07:00
c9fa931a0b fix: add retry 2 for failing e2e tests 2021-04-15 11:46:44 -07:00
92b7c1e9a8 refactor: test-e2e.sh script 2021-04-15 11:46:44 -07:00
6c3bb101cd chore(deps): add resolution for newest playwright 2021-04-15 11:46:44 -07:00
7ea6d22b3e refactor: add login to config.js for e2e tests 2021-04-15 11:46:44 -07:00
52586706c4 refactor: use playwright-test syntax for e2e tests 2021-04-15 11:46:43 -07:00
08cd2d8191 refactor: add new e2e config 2021-04-15 11:46:43 -07:00
0a090bf12b chore(deps): add @playwright/test 2021-04-15 11:46:43 -07:00
ad0f12e664 refactor: check for editor consistently in tests 2021-04-06 15:46:58 -07:00
dd80eed5b0 feat: add logger to tests 2021-04-06 15:46:57 -07:00
fd69f2db88 refactor: logout test 2021-04-06 15:46:57 -07:00
c666b47668 refactor: globalSetup and create cookie manually 2021-04-06 15:46:56 -07:00
51010e73cb feat: add test for globalSetup 2021-04-06 15:46:56 -07:00
4b703cbd4d refactor: e2e tests based on jest-playwright 2021-04-06 15:46:56 -07:00
1782f2a239 refactor: rename e2e test to loginPage 2021-04-06 15:46:56 -07:00
bd55cb94be refactor: move test dir to jest e2e config 2021-04-06 15:46:56 -07:00
6b3db06c7a feat: add new e2e test to test browser 2021-04-06 15:46:56 -07:00
3db19843e2 chore: add eslint plugin for jest-playwright 2021-04-06 15:46:55 -07:00
b4193b8c68 feat: add jest-playwright and packages 2021-04-06 15:46:55 -07:00
9eff1f0702 fix: add timeout to logout test 2021-03-23 12:14:42 -07:00
090687d057 feat: add e2e test for logout 2021-03-23 10:02:03 -07:00
071c8e15fc Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-17 13:51:27 -07:00
36714da613 fixup: move openHelpAbout 2021-03-17 11:25:33 -07:00
d3df963d39 Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-16 14:42:51 -07:00
481dd1f1d6 fixup: rename test 2021-03-16 14:36:31 -07:00
608871eba1 wip: change name back to goHome 2021-03-16 14:26:04 -07:00
3d9d2e592d refactor: add helpAbout test instead of goHome 2021-03-16 14:25:28 -07:00
bcdca86539 refactor: change goHome test to helpAbout 2021-03-16 14:25:28 -07:00
0c2708302d refactor: remove --home flag/feature
We are removing this because it was removed upstream in PR~115599.
2021-03-16 14:25:28 -07:00
964ebe8d0a Replace fs-extra with fs.promises
Remove the Mac directory copy instead of refactoring it since we've had
this for a long time now and I think it's safe to assume that users
running code-server on Mac don't have the old directory anymore.
2021-03-16 12:51:08 -05:00