Commit graph

21 commits

Author SHA1 Message Date
Stan Hu
d9af6f79ed Change the replace placeholder to use the filename
Dynamically adjust placedholder for uploads and fix Dropzone event handlers

Override error handler to prevent error messages from being inserted underneath image preview

Fix tests

Use regexp instead of startsWith for better browser compatibility

Remove duplicate code in _replace.html.haml and use one template

Remove files upon error and retain alert messages until user adds a new file
2015-09-15 13:07:32 -07:00
liyakun
e2ece2bc35 Add "Replace" and "Upload" features
Refactor upload and replace functionality

    Rename file and move CSS

    Fix typo

    Make dropzone a div

    Remove unnecessary file

    Change color of "upload existing one"

    Add missing changes
2015-09-15 02:12:56 +02:00
Stan Hu
562242cb9d Fix commit data retrieval when branch name has single quotes
Closes #1724
2015-07-26 03:47:01 -07:00
Dmitriy Zaporozhets
e05fbf0494
Fix creating file in new repo
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-08 17:41:59 +02:00
Robert Speicher
1f88d9b56f Remove "Multiselect Blob" feature specs
These are well covered by the new Jasmine tests, and faster!
2015-06-19 04:31:24 -04:00
Robert Speicher
4c42fc7c4c Call page.all instead of all in feature steps
There's a naming conflict between Capybara and rspec-matchers which both
define the `all` method.

See https://github.com/jnicklas/capybara/issues/1396
2015-06-12 05:12:42 -04:00
Robert Speicher
584f8601ef Change within to page.within in feature steps 2015-06-12 05:12:42 -04:00
Robert Speicher
69bbc413fe Update all should-style syntax to expect in features 2015-06-12 05:12:09 -04:00
Dmitriy Zaporozhets
7534d0ef46
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-04-29 19:52:25 +03:00
Douwe Maan
1d829ca151 Fix tests. 2015-03-27 11:10:56 +01:00
Valery Sizov
3177693c6f WebEditor: save to new branch: spinach 2015-02-24 11:43:20 +02:00
Vinnie Okada
76aad9b76e Upgrade to Rails 4.1.9
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
2015-02-14 11:09:23 -07:00
Dmitriy Zaporozhets
ce0811ae5c Improve tests 2015-02-06 09:19:51 -08:00
Dmitriy Zaporozhets
e956066d4a Add tests for initializing bare repo and creating new file in it 2015-01-27 12:19:32 -08:00
Dmitriy Zaporozhets
65e88f1e1a Fixed few tests and improved css style 2015-01-26 22:39:48 -08:00
Dmitriy Zaporozhets
90ba3a385c Fix tests for blobs refactoring 2015-01-26 16:08:59 -08:00
Ciro Santilli
18fa155025 Add tests for disabled blob edit button cases. 2014-12-30 18:19:48 +01:00
Ciro Santilli
e4912243c1 Transform remove blob link into button. 2014-10-24 23:44:30 +02:00
Ciro Santilli
2d23522107 Use :message key, not :error for File::Service. 2014-10-13 20:55:09 +02:00
Ciro Santilli
166c215a75 Make new and edit file submit more uniform 2014-10-08 10:01:07 +02:00
Ciro Santilli
fa34901237 Make Spinach test names consistent
- do not add Feature to feature titles
- titleize feature titles
- put steps on the same path as .feature files
- make feature titles match their path
2014-10-05 18:21:11 +02:00