Commit graph

25 commits

Author SHA1 Message Date
glacambre
af36d26fe3 e2e tests: stop renaming .zip files into .xpi
Selenium became able to load .zip extensions in Firefox a couple of
months ago:
4ea31198a7
2020-05-29 06:46:58 +02:00
Oliver Blanthorn
52214cdc10
Bump setTimeout back up to 100s
More tests seem to fail with it at 20s.
2020-05-27 22:37:16 +01:00
glacambre
53b2746108 e2e tests: decapitate firefox 2020-05-27 18:26:43 +02:00
Oliver Blanthorn
2ec16c6c33
Make tests fail faster and give them more chances to succeed 2020-05-27 10:25:29 +01:00
Jakub Okoński
9b4d52dbd2 Try another fix 2019-10-18 14:39:47 +02:00
Jakub Okoński
0ebc44741b Try a fix for selenium export under the wrong name 2019-10-18 14:11:19 +02:00
Jakub Okoński
67fa18b4ec Add a separate tsconfig for tests
Tests run with nodejs + jest types, while the web extension code
runs with browser + web-ext type roots.
2019-10-18 13:07:38 +02:00
Joao Sa
bf29d268cb sligtly increase wait for guiset write to reduce test failure 2019-06-23 21:39:37 -03:00
Joao Sa
bf3862f4df cmd.exe's echo doesn't take -n 2019-06-23 20:24:48 -03:00
Joao Sa
2a9ac030df Fix e2e tests on windows
- Also slightly increased wait for setpref write to reduce test failure
2019-06-23 19:25:27 -03:00
Oliver Blanthorn
3921de48df
Increase jest timeout to make e2e tests less fragile 2019-06-01 14:07:37 +01:00
glacambre
a5212d6cd4
excmds.test.ts: fix rssexec test
Previous test didn't make any sense. I have no idea if I actually wrote
this or if I just failed to commit the right chunks in the right order
when I implemented it.
2019-05-19 19:34:39 +02:00
glacambre
577aab2ddf
excmds.test.ts: Add :setpref test 2019-05-19 18:18:49 +02:00
glacambre
8ba0c8347e
excmds.test.ts: Add :colourscheme test
Note: we can't test loading colorschemes from disk because this requires
having a theme in ~/.config/tridactyl/themes and we don't want to
clobber the config dir of people who test tridactyl.
2019-05-19 17:44:07 +02:00
glacambre
2dcf853340
excmds.test.ts: Add :guiset test
This test makes sure guiset has completions and actually writes
something in the user's userChrome.
Writing this test made me discover that `-profile` was a valid firefox
argument and so I added support for that in native.ts. This made me
realize that the profile detection code didn't handle profiles that
aren't described in `profile.ini` and so I fixed that.
2019-05-19 17:00:52 +02:00
glacambre
753eb03e11
excmds.test.ts: Add :editor test 2019-05-18 18:47:41 +02:00
glacambre
ae678841c0
excmds.test.ts: Fix indentation
The rest of Tridactyl's source code is indented with 4 spaces.
TODO: Fix prettier/tslint pre-commit hooks not warning about test files
being ugly.
2019-05-18 18:44:32 +02:00
glacambre
a6374ee9f5
excmds.test.ts: Fix sendKeys()
The previous implementation didn't send chorded keys (e.g. `<C-i>`)
correctly.
2019-05-18 18:39:17 +02:00
glacambre
f0c8faa19c
excmds.test.ts: Add rssexec test 2019-05-18 15:10:37 +02:00
glacambre
51cb5bde2c
excmds.test.ts: Fiddle with timeout, add tabopen -b/-c tests 2019-05-16 17:54:18 +02:00
glacambre
1262c9fe51
excmds.test.ts: Add two tests
This commit tests that:
- using a single non-searchurl keyword results in said keyword being
  searched using the default search engine
- using a url without a domain name results in said url being navigated
  to
2019-05-16 17:54:13 +02:00
glacambre
19329a62ca
Add two tests, instantiate one driver per test
Using a single driver for all tests introduces race conditions that can
sometimes make tests fail.
2019-05-16 17:54:09 +02:00
glacambre
e14bef1dbb
excmds.test.ts: add ':tabopen https://example.org<CR> opens example.org' 2019-05-16 17:54:05 +02:00
glacambre
325a2e58d0
excmds.test.ts: add ':tabopen<CR> opens the newtab page.' test 2019-05-16 17:52:50 +02:00
glacambre
12aab2a931
Add first selenium test 2019-05-16 17:52:32 +02:00