Commit graph

73 commits

Author SHA1 Message Date
jelhan
64a9dea5e7 refactor dates handling (#137)
* Remove dates ArrayProxy.
* Use moment template helpers.
* Pass timezone and locale directly to moment template helper to avoid issues.
2017-08-11 16:39:36 +02:00
jelhan
5575629fb6 Legacy support is an acceptance test atleast since it's using a mocked api. 2017-08-01 16:23:35 +02:00
jelhan
87ad9b0506 use ember-cli-mirage to mock api 2017-08-01 09:49:02 +02:00
jelhan
632c36eb12 updates dependencies and fixes property modified twice in a single render deprecations 2017-08-01 09:48:48 +02:00
jelhan
364147f4b6 fix build issue by updating ember-moment 2017-07-25 17:17:39 +02:00
jelhan
ed5e5f84c5 Fix tests after d5705b2c3b 2016-08-30 11:54:33 +02:00
jelhan
9b221e7861 add a test for saving a new poll fails due to server 2016-08-26 19:04:50 +02:00
jelhan
6852d6ce27 more suitable page object action for save 2016-08-26 18:29:02 +02:00
jelhan
0e446c19fe add tests for autofocus first form element
introduced by last commit (545f3b0664)
2016-08-26 01:30:46 +02:00
jelhan
e735587c93 update floatThead and drop CSP unsafe-inline requirement
Closes #90
2016-08-23 11:43:58 +02:00
jelhan
94b4dc6f82 use localStorage instead of cookie to save locale setting
there is no need to tell the server which locale is prefered by client
2016-08-21 14:31:39 +02:00
jelhan
d8db29ecd9 adds back button to create wizard
Part of #76
2016-08-21 00:38:44 +02:00
jelhan
5613dfdd43 add button for copying poll link
closes #95
2016-08-20 22:02:53 +02:00
jelhan
c4a1b99c75 enforce wizzard start at first step 2016-08-18 01:09:58 +02:00
jelhan
3d251bc9fb provide status bar to indicate steps of poll creation wizard
part of #76
2016-08-14 22:57:10 +02:00
jelhan
3cb05ca5b3 adds test that user is notified if poll can't be saved
related to #78
2016-08-12 13:00:18 +02:00
jelhan
1396957297 Fix: use a new record per user
was broken by 66b89456d3
2016-08-12 00:43:05 +02:00
jelhan
26b3dab102 update ember-suave and fix some coding style 2016-08-11 22:47:17 +02:00
jelhan
66b89456d3 Fix: feedback if participation can't be saved
adresses #78
2016-08-04 22:24:53 +02:00
jelhan
aa9e0f132b Fix test: Acceptance | create a poll: create a poll and using back button (find a date) 2016-07-28 01:08:43 +02:00
jelhan
bac6c4e72d Fix test after version in package.json has been corrected 2016-07-27 23:17:51 +02:00
jelhan
4bdea08b60 Fix test broken by 0627d409b5 2016-07-27 23:12:35 +02:00
jelhan
2c11fe41bf perserve validation state in create/options-datetime by avoiding rerender 2016-06-08 13:56:06 +02:00
jelhan
4a31aaa616 use ember-bootstrap in create/options
ToDo:
Label validation state should not be bound to validation state of first element (option)
but to validation state of all elements. If any element has an error label validation state
should be error. Only if all elements are fine, label validation state should also be fine.
2016-06-06 01:19:24 +02:00
jelhan
f3426b2a7d support creating polls with only one option
There might be use cases and it simplifies validation a lot.

Also fixes this missing translation message mentioned in #84:
> /create/options-datetime: There isn't any validation error shown when validation fails due to not enough times.
2016-04-15 11:21:26 +02:00
jelhan
8a32f1f5c8 Closes #87. 2016-04-11 00:37:46 +02:00
jelhan
e5c5198601 Fixes #85 2016-04-09 01:52:54 +02:00
jelhan
194f00b7d6 Rewritten (some) acceptance tests with ember-cli-page-objects 2016-04-08 21:48:22 +02:00
jelhan
0ab6ff374c Fix: String could be less than 10 characters which causes test to fail
Math.random() could return 0, 0.5, 0.51 which isn't enough input for a 10 characters string.
2016-03-21 13:05:23 +01:00
jelhan
aa6483c4d1 Fixes #81 2016-03-20 15:31:24 +01:00
jelhan
6f6395e430 Fixes #82 2016-03-18 20:26:41 +01:00
jelhan
9a658ab76d allow alpha / beta / rc releases 2016-03-18 13:15:32 +01:00
jelhan
0fd12adf65 move time selection to separate page again 2016-02-16 02:26:27 +01:00
jelhan
4bcb45d0bb revert change in dynamic segment (under_score to camelCase) since
poll id was not set as part of url afterwards;
add tests to not let this happen again
2016-01-31 15:30:31 +01:00
jelhan
13ddf1194b Merge branch 'master' into rewrite-create-options 2016-01-28 12:36:21 +01:00
jelhan
682e6a658e fix coding style errors
> helpers/poll-has-users.js should pass jscs.
> requireSemicolons: Missing semicolon after statement at helpers/poll-has-users.js
is incostitent with JSHint which complains about this semicolon

other ones should be fixed by rewrite of create/options
2016-01-28 12:34:56 +01:00
jelhan
c5e66436b7 Merge branch 'master' into rewrite-create-options 2016-01-28 11:27:58 +01:00
jelhan
95c5142ad1 some more JSCS fixes 2016-01-28 11:27:00 +01:00
jelhan
33d641623a Merge branch 'master' into rewrite-create-options 2016-01-20 04:23:41 +01:00
jelhan
123655ad37 some more code style errors 2016-01-20 03:52:06 +01:00
jelhan
32106b7e79 Merge branch 'master' into rewrite-create-options 2016-01-20 03:19:28 +01:00
jelhan
e9a6f9ff41 fix some more JSCS code style errors 2016-01-20 03:19:10 +01:00
jelhan
9cfcb6d27a Merge branch 'master' into rewrite-create-options 2016-01-19 05:55:37 +01:00
jelhan
6ba930661e add JSCS code style test and fix errors 2016-01-19 05:46:52 +01:00
jelhan
ce2a8c8e1f done most things except date with times
also validation messages are missing
2016-01-19 04:56:51 +01:00
jelhan
70a3a6a4ab fix: test that version is included as HTML meta tag 2015-12-08 11:39:30 +01:00
jelhan
c13d55ec01 test that version is included as HTML meta tag 2015-12-08 11:27:41 +01:00
jelhan
b209fe1d82 Fix failing tests caused by different moment locale in test vs application 2015-11-24 01:37:37 +01:00
jelhan
8afe43f270 Fix unit tests controller:create
needs a run loop and dates must not be created before visit cause
moment locale isn't that before application route is reached
2015-11-20 23:33:20 +01:00
jelhan
e1bb2da6d1 fix jshint 2015-11-20 11:31:40 +01:00