zetashift
35e0de7b91
Tests for locking threads ( #284 )
...
* Initial try at locking threads tests
* Uncomment tests
* Consist casing
* Add correct query
* Remove redundant navigate call and add frontpage check
* Improve locked thread on frontpage test
2021-04-27 10:23:48 -06:00
zetashift
7954a38601
Pinned Threads ( #278 )
...
* Added isSticky field to `Thread` and in the sql query making a Thread
- Modified indices in `data` and `selectUser` to support `isSticky`
- Add backend procs for initial sticky logic, modeled after locking threads
- Fix indices in selectThread
- Fixup posts.json's threadquery to match Thread with sticky field
* Implement StickyButton for postbutton.nim and add it to postlist.nim
* Fix sticky routes
* Order sticky in a way that they actually appear at the top
* Add border for isSticky on genThread
* Rename stickies to pinned, so professional!
* Add pinned tests
- Add an id to pin button, and add first attempt at useful tests
- Improve pin tests, refactored it into adminTests and userTests
- Add an id to pin button, and add first attempt at useful tests
- Improve pin tests, refactored it into adminTests and userTests
* Make tests more reliable
Co-authored-by: Joey Yakimowich-Payne <jyapayne@gmail.com>
2021-04-25 18:39:03 -06:00
Dominik Picheta
7d8417ff97
Revert "Replace webdriver with halonium"
2020-09-01 18:27:58 +01:00
Joey Yakimowich-Payne
3d975e8386
Replace webdriver with halonium
2020-08-31 15:43:23 -06:00
Joey Yakimowich-Payne
9739c34abd
Add test for category change
2020-08-29 11:49:00 -06:00
hlaaftana
2987955e8a
fix delete thread test
2020-05-10 19:15:02 +03:00
hlaaftana
16abee0596
add user delete thread test
2020-05-10 17:54:32 +03:00
Joey Yakimowich-Payne
8984074809
Fix tests
2020-03-26 22:58:48 +00:00
Joey Yakimowich-Payne
dcea4091f4
Fix tests
2020-03-06 11:27:41 +01:00
Joey Yakimowich-Payne
0d63fef0f7
Add one more test for user in categories page
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
60ace9c65a
Remove unnecessary check
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
3b092ae2d1
Change unnecessary templates to procs
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
31d3b2701d
Add create category test
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
5ce99a5a3d
Add tests and improve testing experience
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
6c70713afb
Cleanup test imports
2020-03-03 15:11:26 +01:00
Joey Yakimowich-Payne
5a4f44b4ee
Speedup and simplify tests
...
This drastically speeds up tests and simplifies test writing by making
it so that no explicit calls for waiting are needed. Elements that are
queried for now implicitly waits for them to be available.
On my machine, tests used to take 3-4 minutes to complete. Now they take
~1 minute to complete.
2020-02-17 08:53:30 +01:00
Joey Yakimowich-Payne
fac828b1e9
Merge branch 'master' into add_categories
2020-02-14 09:48:08 -07:00
Joey Yakimowich-Payne
f93bd87316
Update for Nim 1.0.6
2020-02-14 17:43:17 +01:00
Joey Payne
41a1a36dbf
Fix issues compiling and testing
2019-01-24 20:37:03 -07:00
Joey Yakimowich-Payne
2b88a54f54
Add test for case insensitive name check
2018-08-16 11:29:57 +09:00
Joey Yakimowich-Payne
416d2601fb
Fix another test issue
2018-08-09 09:51:37 +09:00
Joey Yakimowich-Payne
796d8ee20c
Fix tests
2018-08-08 21:41:20 +09:00
Joey Yakimowich-Payne
0af291dc10
Add test for category adding
2018-08-08 19:12:28 +09:00
Joey Yakimowich-Payne
2e42ede2ad
Add basic categories test
2018-08-06 17:30:07 +09:00
Joey Yakimowich-Payne
7925c4b8b1
Remove navigate from login/logout and add clear command
2018-07-23 10:13:06 +09:00
Joey Yakimowich-Payne
465ba1e024
Fix tests and merge
2018-07-22 20:10:41 +09:00
Joey Yakimowich-Payne
a6c0fe691c
Add test for banned user
2018-07-22 19:28:21 +09:00
Dominik Picheta
5714ad0c6a
Adds attempt to test issue #181 . Moves procs to common too.
...
Sadly the attempt wasn't a success. I decided to commit what I've
got so far and come back to it later. Out of time for this now.
2018-07-20 15:16:39 +01:00
Joey Yakimowich-Payne
b405f63a32
Separate user and admin tests
2018-07-17 22:51:01 +09:00
Joey Yakimowich-Payne
80558b6bfb
Make 5000 ms default wait
2018-07-17 22:32:38 +09:00
Joey Yakimowich-Payne
0050ad42f5
Try to appease travis
2018-07-17 20:04:02 +09:00
Joey Yakimowich-Payne
f315be7361
Add tests for like/delete thread
2018-07-16 21:10:46 +09:00
Joey Yakimowich-Payne
3324f37faa
Cleanup in scenario1
2018-07-16 21:09:55 +09:00
Joey Yakimowich-Payne
3c93224817
Fix user/password combo
2018-07-16 19:05:26 +09:00
Joey Yakimowich-Payne
d7f3a038a9
Rewrite threads tests with new macro
2018-07-16 14:51:21 +09:00
Joey Yakimowich-Payne
1b55aec5d2
Rewrite scenario1 with new macro
2018-07-16 14:50:33 +09:00
Joey Yakimowich-Payne
cb5923d9f8
Add helpful macro and procs for testing
2018-07-16 14:49:56 +09:00
Joey Yakimowich-Payne
b650a9f401
Add basic test for creating a thread
2018-07-13 09:18:09 +09:00
Dominik Picheta
8ee75233d4
Fixes travis failure by creating test DB earlier.
2018-05-22 22:21:59 +01:00
Dominik Picheta
40167ef1e4
Implements "can register" web driver test.
2018-05-20 21:43:09 +01:00
Dominik Picheta
dc72aeb677
Prevent stalls due to no -y flag.
2018-05-19 17:04:43 +01:00
Dominik Picheta
e5772b8579
Implements login test.
2018-05-19 13:18:57 +01:00
Dominik Picheta
c6ed9e80c9
Implements web driver test suite and simple test.
2018-05-18 22:33:56 +01:00