hairlessbear
7ac2c0c0c4
Made test name more descriptive and added HP expects
2015-04-27 10:49:57 -04:00
hairlessbear
5693386b12
Fixed tests
2015-04-27 00:42:55 -04:00
hairlessbear
4b980c78a1
Made tests more descriptive
2015-04-26 22:49:05 -04:00
hairlessbear
53ff109680
Added tests for Inn functionality
2015-04-26 19:07:11 -04:00
Joy Clark
f181787e8b
added some unit tests to test the autocomplete controller
2015-04-26 21:38:46 +02:00
Joy Clark
f214428411
Improved filter function as described in #5085 and added unit tests.
2015-04-26 17:50:53 +02:00
Blade Barringer
2f4fc8fb88
Put isMemberOfGroup in its own describe block
2015-04-25 17:32:46 -05:00
Blade Barringer
ce4535594c
refactor joyclark's test
2015-04-25 17:31:40 -05:00
Joy Clark
913afc8f39
#5085 restructured unit tests for AutocompleteCtrl
2015-04-25 23:22:39 +02:00
Joy Clark
3458815f28
#5085 added some unit tests.
2015-04-25 23:08:28 +02:00
Kevin Gisi
65e42345f2
Ensure correct join/leave button for parties
2015-04-24 11:54:00 -04:00
Alys
7c36e49243
Merge pull request #5022 from gisikw/dated-tasks-correct-impl
...
Dated tasks correct impl
2015-04-22 16:56:03 +10:00
Blade Barringer
1d95784dde
refactor isMemberOfGroup and tests
2015-04-16 07:58:35 -05:00
Blade Barringer
4853c0814d
Corrected function
2015-04-16 07:39:55 -05:00
Blade Barringer
5ef4b7b395
Add tests for isMemberOf
2015-04-16 07:32:56 -05:00
Blade Barringer
83858da25e
Change button to be more specific
2015-04-14 08:11:39 -05:00
Blade Barringer
b027e2c407
Corrected port and db to use
2015-04-13 17:22:24 -05:00
Kevin Gisi
b503a0fd64
Repaired task reordering issue
...
* Created `conditionalOrderBy` filter with a similar signature to `orderBy`,
using a single conditional argument that when false, causes the filter to
return the array unchanged
* Updated task view to use `conditionalOrderBy`
* Added karma specs for `conditionalOrderBy` filter
2015-04-13 08:51:08 -04:00
Blade Barringer
f7d30dbc86
Remove only block on karma test
2015-04-11 00:01:39 -05:00
Blade Barringer
5f8477ff10
Merge pull request #5005 from crookedneighbor/hall_of_heroes_quick_click
...
Made uuid in hall of heroes populate the input box
2015-04-10 23:56:34 -05:00
Blade Barringer
8642366f15
scroll to top and load hero; add tests for new behavior.
2015-04-10 23:51:34 -05:00
Blade Barringer
730ac4b3df
correct chat api tests; prevent sending a blank message via the api
2015-04-10 18:27:58 -05:00
Blade Barringer
24ef3aa012
Made uuid in hall of heroes populate the input box
2015-04-09 21:57:06 -05:00
Kevin Gisi
205e26883e
Provisional commit of revised test manager and protractor version, pending a Travis run
2015-04-04 21:35:16 -04:00
Kevin Gisi
35866568da
Repair broken e2e test by changes in copy and IDs
...
* Switch the "Play" button to check for "Play HabitRPG"
* Change "#register-tab" selector to use "#registrationForm"
* Increase delay when only running protractor specs, to ensure the server has
time to spin up
2015-04-03 21:14:22 -04:00
John Montgomery
c2e2122efd
Forgot to change part of the new tag test.
2015-03-30 22:37:26 -04:00
John Montgomery
c22acb81a8
Updates new tag code and test spec for new tags.
2015-03-30 22:07:02 -04:00
Kevin Gisi
5c7c986a1f
Merge branch 'todo-tests-start' into blade_todo_and_chat_tests
2015-03-27 08:42:47 -04:00
Blade Barringer
80778cbd7c
Added additional deletion test
2015-03-27 08:38:05 -04:00
Blade Barringer
4707ba793e
Added some basic tests for todo creating, updating and deleting
2015-03-27 08:38:05 -04:00
Blade Barringer
a9232156ef
Checks to see if user id and username match chat
2015-03-27 08:33:15 -04:00
Blade Barringer
c5de07d33e
Removed deeply eql check for number comparison
2015-03-27 08:33:15 -04:00
Blade Barringer
3c741f431a
Deleted extraneous line breaks
2015-03-27 08:33:14 -04:00
Blade Barringer
9be08ad143
Added additional tests for chat functions in api
2015-03-27 08:33:14 -04:00
Kevin Gisi
b894ae8af0
Remove comments about broken user registering in API tests
2015-03-26 17:57:58 -04:00
Kevin Gisi
97323eaf23
Marked some tests as pending, after rebase
2015-03-26 17:57:58 -04:00
Kevin Gisi
17c7e199bd
Fix some of the formatting changes - was accidentally testing against a newer version of coffeescript
2015-03-26 17:57:58 -04:00
Kevin Gisi
63fea58d08
Repair most Mocha API specs
2015-03-26 17:57:57 -04:00
Kevin Gisi
bcd3d9a0b7
Add Mocha specs for common back into the test suite
2015-03-26 17:57:57 -04:00
Kevin Gisi
7bed1efb21
Revised Grunt translations task to use build:test
...
* Added build:test task to generate translation JS for tests.
* Removed test/spec/translations.js from the repository, added to .gitignore.
* Updated test/run_tests.sh to run build:test, and accept an optional argument
to run a particular test suite.
2015-03-24 21:39:03 -04:00
Kevin Gisi
1e59336d09
Repair remaining Karma specs - all passing.
...
* Stubbed out User module to repair rootCtrlSpec
* Loaded RootCtrl in inventoryCtrlSpec, as it was missing shared functions.
Updated mock user to include a mounts hash.
2015-03-24 21:39:03 -04:00
Kevin Gisi
2194caec15
Repaired groupServicesSpec, uncommented specs.
...
As it turns out, the page reload behavior was not caused by $resource, but
exists somewhere within the User module. Stubbed out the User module as as done
in notificationServicesSpec
2015-03-24 21:39:03 -04:00
Kevin Gisi
09b6401794
Add translations to Karma specs
...
* Added a task to Gruntfile to use website/src/i18n.js to generate a small JS file to be loaded in Karma env which sets window.env.translations to the i18n.translations['en'].
* Added new Grunt task to build:dev
* Updated Karma specs to reenable testing where possible, updating comments where not.
2015-03-24 21:39:03 -04:00
Kevin Gisi
f41933b7a1
Repair Broken Test Suite - Full Passing Tests
...
* Repair broken e2e test introduced in 8d03cfc (copywriting change was not
reflected in the spec)
* Updated i18n.coffee code to be more cautious (it expected the 'en' locale
would always be available, but provides appropriate error handling as-is).
* Extended timeout duration for protractor, as registration was slightly above
30s.
* Added karma-mocha-reporter as a dev dependency to ensure test visibility.
2015-03-24 21:39:03 -04:00
Sean Zellmer
5ab2cb0908
Use PhantomJS and run karma in Travis-CI
2015-03-07 16:37:35 -06:00
Blade Barringer
6f8133d760
Corrected indentation of purchase test
2015-03-07 16:23:56 -06:00
blade
35f98993c4
Skipping groups test in api for now, revisit later
2015-03-07 16:09:56 -06:00
Sean Zellmer
4bc4e836e4
Make karma tests pass.
...
This pends a lot of tests that are failing due to translations not being loaded in the environment, as well as some issues with the page reload in groupServicesSpec.
We removed the module declarations for habitrpg in each spec since that
has been moved to specHelper.
2015-03-07 15:48:23 -06:00
Nick Tomlin
64493375ad
Fix broken group and member service specs
...
Both were trying to declare an angular mock module that did not exist.
The group service spec urls were also asserting a trailing `?` that
doesn't seem to be party of the actual request.
2015-03-05 12:43:07 -06:00
Nick Tomlin
e7f65f219a
WIP - Fix karma config file order to successfully boostrap app
...
There were a few issues here:
1. Relying on globs meant that modules were loaded out of order. So
'habitrpgc' was undefined when we were trying to add services etc to it.
The short term solution is to list them in the same way we list them in manifest
json. The long term would be switching everything to browserify so as to
avoid ordering/listing nightmare by having a single bundle.
2. We were missing exeternal deps (like 'hello') so the tests were
breaking before they even started. Some of them still are
3. We were including services that don't seem to exist anymore (e.g. `habitrpgstatic`). We still are in certain places
2015-03-05 12:12:32 -06:00
Nick Tomlin
dccf95a3c2
Fix nconf path in api test
2015-03-04 20:55:09 -06:00
Blade Barringer
c66966139b
Fixed typo in comment
2015-03-04 20:55:09 -06:00
Blade Barringer
4de6ce0331
Wrote todo about what is wrong with the registerNewUser function
2015-03-04 20:55:08 -06:00
Blade Barringer
735aa59851
Updated request call to use correct form
2015-03-04 20:55:08 -06:00
Blade Barringer
e6e212d436
Added todo for area where test is failing to behave properly
2015-03-04 20:55:08 -06:00
Blade Barringer
c26aceb17a
Used a numTasks variable and added comments
2015-03-04 20:55:08 -06:00
Blade Barringer
66ac773ce9
Added comment about expect
2015-03-04 20:55:08 -06:00
Blade Barringer
7200f3a1d2
Wrote a todo for test
2015-03-04 20:55:08 -06:00
Blade Barringer
e8be1524fc
Removed the create a new user function call from groups, as it was now using the correct user to look up the leader
2015-03-04 20:52:05 -06:00
Blade Barringer
ab27dd405c
Changed challenges completed count to calculate from total number of user tasks minus 2 (the two completed)
2015-03-04 20:52:05 -06:00
Blade Barringer
0716177d41
Corrected tests for archiving todos to reflect the correct number of default todos when creating account.
2015-03-04 20:52:05 -06:00
Blade Barringer
cac788e7db
djusted paths
2015-02-03 21:43:10 -06:00
Blade Barringer
9b8f006064
Added sinon and corrected path
2015-02-03 21:30:43 -06:00
Blade Barringer
0f62845fb2
Moved tests into main test folder and corrected path to common files
2015-02-03 21:29:05 -06:00
Blade Barringer
08ab6eba71
Converted shared to common in api test
2015-01-25 15:54:19 -06:00
Blade Barringer
95951a4706
Updated moment calls to use number, period to fix the deprecation error
2014-12-19 19:41:22 -06:00
benmanley
50b1cba0a6
refactor(tasks) improve UI consistency
...
* Round corners for UI elements / “8-bit” outlines for RPG elements.
* Tag bar – Make it clearer that “Tags” is a heading, not an option
* Task filters – restyle in line with tag bar + nav menu
2014-11-27 10:32:57 +00:00
Matteo Pagliazzi
704a8658f3
require moment where necessary
2014-10-03 19:38:18 +02:00
Tyler Renelle
6253404677
tests(api.mocha): move bac to coffeescript from javascript
2014-09-07 17:06:24 -06:00
Joby Walker
8d1b17320a
Update to wrap async calls with async.parallel
2014-08-06 21:10:54 -07:00
Joby Walker
7e059fe496
Fetch each member to get correct data
...
_group.members is an array of IDs not the user objects. Fetch each one
to test.
2014-08-02 14:20:42 -07:00
Joby Walker
937920c5a5
Pets are set to 5 not true.
2014-08-02 14:19:30 -07:00
Joby Walker
a8c64a4524
Use explicit get for 'quest'
...
Quest is currently set to null when quests end. Mongoose wraps the value
in an object so the test will fail.
2014-08-02 14:18:39 -07:00
Tyler Renelle
a8b2b32557
refactor(groups): cleanup leave-group code
2014-07-11 14:43:11 -06:00
Tyler Renelle
9f1035c317
feat(dilatory): scene damage + boss def/str. bug fixes, tests
2014-06-25 14:12:30 -06:00
Greg Laabs
1bcc31683b
Update spell cast test to ensure user has mana
2014-05-26 13:15:55 -07:00
Matteo Pagliazzi
8ec69b4f83
improve(i18n): move translations to their own module, use i18n from habitrpg-shared, @djuretic i have remove the tests because the code is now handled in habitrpg-shared, we may add them back there
2014-05-06 20:04:09 +02:00
Tyler Renelle
b0eb12bb5f
feat(subscriptions): allow one month after sub start-date before it's terminated. Fixes #3180
2014-05-06 09:18:44 -06:00
James Hsiao
6010540dc5
Updated tests to account for new todos
2014-04-22 12:18:54 -04:00
Dušan Juretić
9995c255e3
Fix failing unit test
2014-03-08 23:37:37 -03:00
Denis
28729cf71b
fix(tests): correctly return the exit code
2014-02-26 16:57:49 +02:00
Tyler Renelle
b95056606a
Merge pull request #2869 from denis-sokolov/travis
...
chore(travis): remove travis config until the issues are resolved
2014-02-21 18:05:03 -08:00
Denis
7d17752fa8
fix(travis): disable selenium tests on Travis
2014-02-18 20:44:28 +02:00
Denis
13f8e55dce
fix(tests): set a proper environment for tests
2014-02-18 20:44:06 +02:00
Tyler Renelle
78fcdd20c9
chore(tests): tests to go along with #1883 challenges fix
2014-02-14 20:37:16 -07:00
Tyler Renelle
ada926de9a
test(quests): change quest testing from vice1 => vice3 (ps, I'm doing
...
this to test drop types separately, preferable if we can us all 3 tests
- this & previous commits)
2014-01-31 15:06:57 -07:00
Tyler Renelle
e3e5399584
test(quests): change quest tests from gryphon => vice1
2014-01-31 15:06:56 -07:00
Dušan Juretić
117c26cfd3
Added tests for translations (env.t)
2014-01-25 21:01:43 -03:00
Tyler Renelle
e0646bb98d
fix(spells): add some spells tests, don't send up body to spell paths
2014-01-22 00:16:52 -08:00
Tyler Renelle
990c3aa762
test(quests): make sure other members get drop
2014-01-21 15:59:53 -08:00
Tyler Renelle
f478d10c20
fix(quests): bug fix to multi-drop
2014-01-21 15:08:11 -08:00
Tyler Renelle
d9e5725ee1
feat(quests): allow quests to drop multiple items
2014-01-21 13:13:15 -08:00
Tyler Renelle
f71d6957e8
test(quests): test quest drops
2014-01-21 13:07:33 -08:00
Tyler Renelle
18e98abfa1
test(quests): ensure non-questers don't get hurty by boss on cron #2249
2014-01-21 12:45:18 -08:00
Tyler Renelle
07bca1f265
test(quests): start adding quests/bosses quests. Unfortunately it failes because it() is parallel, but Im trying to have each it() setup for the next. Gotta figure somethign out
2014-01-21 09:51:38 -08:00
Tyler Renelle
4efd0f5ed8
fix(bosses): don't reset progress.up when starting a new quest. We want
...
to be able to carry over damage from the same day a boss battle begins,
even if the dailies were completed before battle-start. Fixes #2168
2014-01-20 16:40:48 -08:00
Tyler Renelle
9cdf6b5e34
chore(todos): add tests for 3-day todo archiving #2478
2014-01-19 17:39:50 -08:00
Dušan Juretić
efdd85fe2e
Using newUser helper in tests
2014-01-18 20:42:28 -03:00
Dušan Juretić
bca13b5557
First root controller test
2014-01-18 20:42:28 -03:00
Tyler Renelle
29b1320f4a
chore(archived tests) Moving unused tests, casper stuff, and
...
api.mocha.coffee into archive directory. we could depend on git history,
but I want to keep them publicly visible to developers for now since
they may contain valuable test worth porting to our new
setup.
2014-01-16 16:32:53 -07:00
Andrew Bloomgarden
f94ea084d7
Update README to account for API tests in JS.
2014-01-15 21:34:36 -08:00
Andrew Bloomgarden
c9e3b37ff8
Rewrite API tests in normal JS.
2014-01-15 21:34:36 -08:00
Andrew Bloomgarden
689dddee7f
Actually wait for Selenium to start.
2014-01-15 21:34:20 -08:00
Andrew Bloomgarden
dc368bb652
Remove references to $rootScope.Shared & .Content in non-view code.
...
Instead, have them request services that return them so tests don’t need to prepare special state.
2014-01-15 21:33:58 -08:00
Andrew Bloomgarden
77801e458e
Change static module name to habitrpgStatic.
...
The way the tests are written now, the habitrpg module definition in static.js
was clobbering the one in app.js. In other words, most of the tests weren't
testing what they thought they were testing.
2014-01-15 21:33:57 -08:00
Matteo Pagliazzi
263a752abf
add mocha tests to travis, remove makefile
2014-01-15 20:11:29 +01:00
Dušan Juretić
74495bb690
Fix tag creation test
2014-01-13 23:20:33 -03:00
Dušan Juretić
f7f9bb1131
Fix memberServices test
2014-01-13 23:09:11 -03:00
Tyler Renelle
a326072858
start adding quests tests
2014-01-05 15:08:10 -07:00
Tyler Renelle
e474278ab3
groups: upon group-creation, creator is automatically assigned as leader
...
and only member. Remove sending up leader & members from the client,
should all be handled on the server
2014-01-05 15:08:10 -07:00
Dušan Juretić
aa0a515e5e
Tests for filtersCtrl
2014-01-04 22:40:57 -03:00
Dušan Juretić
4777a693ba
Test refactoring: user.user -> user
2014-01-04 17:35:45 -03:00
Dušan Juretić
a74e99a78f
Minor style changes to inventoryCtrlSpec.js
2014-01-04 17:32:30 -03:00
Dušan Juretić
a4c7775d51
Tests for choosing a pet and buying an egg
2014-01-04 17:28:13 -03:00
Dušan Juretić
24815af9c1
Added inventoryCtrl tests for hatching and selling
2014-01-04 00:02:51 -03:00
Dušan Juretić
d58568c9d8
Fix AuthCtrl tests with proper asserts
2014-01-03 23:28:43 -03:00
Tyler Renelle
9a6f0c0339
challenges: don't remove To-Dos that are part of a challenge when
...
clearing completed
2014-01-03 14:18:53 -07:00
Tyler Renelle
c9e083b602
challenges: add "official habitrpg challenge" option
2014-01-03 13:36:13 -07:00
Tyler Renelle
abd300199a
challenges: allow members to override challenge.tasks.notes, and sycning
...
challenge won't update those notes.
2014-01-03 13:10:56 -07:00
Tyler Renelle
6d8e4ed8a2
tests: api.mocha.coffee cleanup WIP
2014-01-03 10:26:46 -07:00
Tyler Renelle
2c1eb955ac
fix #1954 . Start updating API tests, beginning with challenges. Use
...
test to fix "challenge updates not updating users' tasks"
2014-01-03 00:01:24 -07:00
Dušan Juretić
ae080fd474
Tests for inventoryCtrl
2014-01-02 22:49:31 -03:00
Dušan Juretić
803a45b47f
Test server port changed to 3001
2014-01-01 14:01:51 -03:00
Dušan Juretić
431622ce14
E2e tests: launch Selenium and node server and kill them after finishing the tests, using a test database
2014-01-01 14:01:51 -03:00
Dušan Juretić
69c4977511
Fix again e2e test
2014-01-01 14:01:51 -03:00
Dušan Juretić
c572a195aa
Take screenshot of failed e2e tests
2014-01-01 14:01:51 -03:00
Dušan Juretić
87e7b2ead6
Fix build by giving more time to Protractor
2014-01-01 14:01:51 -03:00
Dušan Juretić
a6443bceb8
Fix build
2014-01-01 14:01:51 -03:00
Dušan Juretić
91b0f3fb96
E2e testing: added tests for failed login and register new user
2014-01-01 14:01:51 -03:00
Dušan Juretić
462bc416de
Starting e2e testing
2014-01-01 14:01:23 -03:00
Dušan Juretić
6ab10f9f3d
Fix unit tests
2013-12-23 22:38:15 -03:00
Dušan Juretić
9f32d3e7b8
Fix userServicesSpecs by adding notificationServices
2013-12-15 16:49:53 -03:00
Dušan Juretić
34ea6038f1
add single test for notificationServices
2013-11-15 22:42:30 -03:00
Dušan Juretić
2f5025e322
add tests for groupServices
2013-11-15 22:42:30 -03:00
Dušan Juretić
f4ac5dfe8c
fix unit tests
2013-10-31 22:35:35 -03:00
Dušan Juretić
bb4350fb52
add tests for memberServices
2013-10-19 23:33:27 -03:00
Dušan Juretić
6830a9281d
add tests for userServices, changed alert to $window.alert in userServices
2013-10-13 19:01:46 -03:00
Dušan Juretić
89b4d2ece0
authCtrl tests now working, replaced window for $window
2013-10-12 22:46:13 -03:00
Tyler Renelle
c54c383c5a
[ #1534 ] add some more starter test code, still no tests
2013-09-13 21:19:02 -04:00
Tyler Renelle
449ea620af
mongoose WIP: use mongoose in API routes, instead of Racer. Add mongoose middleware to perform proper Derby <-> API transformations. some safe-guarding of PUT /user paths, send error messages if they're using the old way. remove task deletion & addition from PUT /user
2013-08-24 18:52:29 -04:00
Tyler Renelle
319c2667d7
some sloppy mocha tests for corrupt task handling
2013-08-15 00:28:27 -04:00
Tyler Renelle
0d83ac09fc
api; on batch-update, override res.send & res.json to call the series
...
callback instead, and simply skip error paths. we need to send down the
error eventually
2013-08-14 21:50:17 -04:00
Tyler Renelle
66bdd3616e
API utility sendResult function, new POST /api/v1/register route to register new uname/pass users (i'm thinking about nixing facebook altogether in the future)
2013-08-14 19:35:14 -04:00
Tyler Renelle
2252bebf9b
set mocha timeout to 4s
2013-08-14 09:42:25 -04:00
Tyler Renelle
d17bd6fe90
api: export all of api to functions, called by route. This way we can have our /batch-update route access the api functions
2013-08-11 00:47:40 -04:00
Tyler Renelle
e667b3a2b0
start adding v2 api tests (nothing here yet)
2013-08-08 14:04:07 -04:00
Tyler Renelle
8e922bb151
API: add facebook auth route
2013-07-12 17:15:11 -04:00
Tyler Renelle
704a056c47
Merge remote-tracking branch 'switz/api-authentication' into develop
...
Conflicts:
src/server/api.coffee
test/api.mocha.coffee
2013-07-12 16:36:12 -04:00
Tyler Renelle
f0c50e1cfe
fix api + tests
2013-05-25 19:42:59 +01:00
Tyler Renelle
955c2841ea
tests: get rid of user.mocha.coffee, now it's in habitrpg-shared
2013-05-25 18:29:42 +01:00