Commit Graph

357 Commits (df1629c7b9898e5d9bc787dd2c96e4176271cddc)

Author SHA1 Message Date
Luiza Pagliari 5e90700561 [test] Create tests for automatic reconnection on error 2017-04-04 13:07:40 -03:00
Luiza Pagliari 2b96a961e3 [fix] Remove extra whitespace on helper tests for IE 2017-02-20 06:14:27 -03:00
Luiza Pagliari 15cda0fde6 [refactor] Use better way to select a single line 2017-02-20 06:03:56 -03:00
Luiza Pagliari 92be656113 [test] Fix helper tests for IE 2017-02-20 06:02:31 -03:00
Luiza Pagliari 02bd4a31af [fix] Fix drag and drop tests for IE 2017-02-03 06:47:33 -02:00
muxator f2b5f3bca2 tests: print expected & received output for 'getHTML'
This test was broken by #3268 (getLineHTMLForExport - Fixes #2486 but breaks
plugins). This change aims to facilitate debugging.

Expected:
<!doctype html><html><body><ul class="bullet"><li>one</li><li>2</li></ul><br><ul><ul class="bullet"><li>ul2</li></ul></ul></body></html>

Received:
<!doctype html><html><body><ul class="bullet"><li>one</li><li>2</ul><br><ul class="bullet"><li><ul class="bullet"><li>ul2</ul></li></ul></body></html>
2018-07-17 00:46:52 +02:00
Luiza Pagliari 58c3154769
[fix] Ignore default line attribs when detecting edges of changeset (#3420)
When comparing original content with the changes made by the user, we
need to ignore some line attribs that are added by content collector,
otherwise we would consider the change started on the first char of the
line -- the '*' that is added when line has line attribs.

In order to be able to handle both #3354 and #3118, we need to take into
account both the styles attribs (to fix #3354) and the line attribs
defined by any of the plugins (to fix #3118), but we can ignore those
extra line attribs that are added by Etherpad and do not add any
functionality (`'lmkr', 'insertorder', 'start'`).
2018-07-09 17:44:38 -03:00
Luiza Pagliari 7729e5a1a9
[fix:test] Use promise chain instead of chain (is deprecated) (#3419)
Fix warning when running tests: "chain api has been deprecated, use
promise chain instead."
2018-07-09 17:09:02 -03:00
Luiza Pagliari ea562250d9 Perform drag and drop in one changeset, so UNDO works properly. Fix #3041 2016-08-22 18:44:17 -03:00
Luiza Pagliari a2ee1d0b3f Merge pull request #3009 from storytouch/selectMultipleLinesOnFESpecs
Enable multi-line selection on frontend tests
2016-07-15 15:05:54 -03:00
John McLear ab4f23aae5 Merge pull request #2970 from xavidotron/url
Remove [ and ] from the regexp used by the URL filter.
2016-06-28 07:28:18 +01:00
Xavid 28aa3b28d6 Add a frontend test for URLs followed by a ]. 2016-06-27 16:20:12 -04:00
Luiza Pagliari 3f15ff91eb Select beginning of end line when offset is 0 on frontend tests 2016-06-21 11:07:57 -03:00
Luiza Pagliari 95dc9d0315 Enable multi-line selection on frontend tests 2016-06-21 06:48:10 -03:00
Max Schaefer b94fb2b54d Fix useless comparison in sussonsAndGroups test. 2016-05-05 11:50:39 +01:00
Stefan 103e07e828 Fix document.domain error in frontend tests 2016-03-29 16:16:22 +02:00
Stefan d7c4cc8e65 Fix check in backend tests 2016-03-23 16:47:52 +01:00
Luiza Pagliari ed39788d71 Fix flaky tests introduced by #2805 2015-10-24 11:10:17 -02:00
John McLear 50171a4c3c Merge pull request #2805 from storytouch/indentationSetting
Create setting to control if a new line will be indented or not
2015-10-22 16:12:07 +01:00
Ted Mielczarek a675659dc2 Add an appendText API 2015-10-19 15:27:09 -04:00
Luiza Pagliari 5deb06d589 Create setting to control if a new line will be indented or not
Currently pressing ENTER on a line that ends with ':', '[', '(' or '{'
automaticaly indents the new line with 4 spaces. The variable added by
this commit to settings.json allow an Etherpad instance to not have this
behavior.
2015-10-13 18:39:23 -03:00
John McLear b5686adf92 fix font test 2015-07-01 20:23:31 +01:00
Xavid ad137fa4c8 Restore newline-adding to setText() if passed string does not end in '\n'.
Add a test for the ending-in-'\n' case and update tests for the other case.
2015-06-30 04:47:55 -04:00
John McLear d803ac128e use settings for backend tests 2015-06-29 11:00:00 +01:00
John McLear 4252ef26f6 remove console logs 2015-06-29 10:23:30 +01:00
Simon Gaeremynck fd9d0bc291 Added backend tests for TidyHtml 2015-05-18 17:44:11 +01:00
Xavid 9e86fb279b Fix backend tests with new setText() implementation; tests depended
on the old setText() behavior leaving the last character.
2015-05-06 08:45:22 -04:00
John McLear 0dfecb3af7 change target for IE 9 test 2015-04-12 14:05:49 +01:00
John McLear 4ef6604ca9 dont test against IE8 any more as we dont care about it 2015-04-12 13:16:32 +01:00
John McLear 07efa4246b comment out import tests as they fail in IE 2015-04-11 14:57:59 +01:00
John McLear 5ef22e649b Merge pull request #2302 from Gared/create_pad_special_characters
Add check for special url characters to createPad API function
2015-04-11 14:56:26 +01:00
Stefan 83094e0dfd Add test for creating pads with bad characters 2015-04-11 15:50:51 +02:00
John McLear d3baf24ce1 disabling import export tests for now as they are reporting false positives... at some point they will need properly fixing 2015-04-11 09:12:53 +01:00
John McLear 15470c9dc3 fix chrome test 2015-04-11 00:23:06 +01:00
John McLear ee5833b9c6 Merge branch 'develop' of github.com:ether/etherpad-lite into editbar-accessibility 2015-04-02 00:05:25 +01:00
John McLear 27ae48686d reintroduce removed api points that were removed by mistake 2015-04-01 13:56:52 +01:00
John McLear 32a09ff461 tests and fix up sloppy code by original author 2015-04-01 13:52:56 +01:00
John McLear 733deb613e fix font type test 2015-03-31 23:51:40 +01:00
webzwo0i 547046830e actually disconnect should NOT be visible... 2015-03-03 16:51:18 +01:00
webzwo0i 393a4e54e5 recognize reconnect in clear_authorship_colors test 2015-03-03 16:17:39 +01:00
Luc Didry 92022e493e Add backend tests for new API functions
These new functions are:
* getSavedRevisionsCount
* listSavedRevisions
* saveRevision

+ typo fixing in backend tests
2015-02-25 01:05:58 +01:00
John McLear 26a1584470 fix tests w/ new context 2015-01-21 15:21:15 +00:00
John McLear cbeb464358 ie now uses keydown 2015-01-21 01:16:12 +00:00
John McLear 860c584b42 remove pointless comments 2015-01-19 15:44:16 +00:00
John McLear 5967e085b7 fix ul tests 2015-01-19 15:37:29 +00:00
John McLear 3463b16d1a nearly there... 2015-01-19 03:04:23 +00:00
John McLear 7958f3b723 nearly fully working 2015-01-19 03:02:34 +00:00
John McLear cadb83ac5a bumpage 2015-01-19 02:51:32 +00:00
webzwo0i ce156540ba fix importexport-tests 2015-01-07 07:03:53 +01:00
John McLear 230302b132 fix timeslider stars and frontend tests, needs css polish 2015-01-01 22:40:45 +00:00
John McLear 83f62bb6a9 remove console log 2014-12-31 13:21:36 +00:00
John McLear 4687d226c6 Merge pull request #2417 from webzwo0i/fix-export
Fix ExportHtml.js list parsing code
2014-12-30 13:47:31 +01:00
John McLear 7980381369 better test coverage for longer pad data 2014-12-29 21:13:07 +01:00
webzwo0i 8e280f46c1 fix bullet test case, remove indent-testcases because they are in separate file 2014-12-29 16:25:41 +01:00
webzwo0i a36d6f36a0 add testcase for import of intended lists 2014-12-29 16:12:46 +01:00
John McLear c9b0c6896e move pad tests - still need to do copy pad and some other functionality IE force 2014-12-29 15:08:30 +01:00
John McLear cec9065df8 test for #2395 #2402 2014-12-29 00:30:11 +01:00
John McLear 9715e039cd tests front chat going from stiky to smally 2014-12-28 20:25:46 +01:00
webzwo0i 53ca26d030 add some import-export tests 2014-12-28 02:27:53 +01:00
John McLear 444bbf4cbc remove trailing enter from apikey 2014-12-27 14:19:31 +01:00
John McLear c409495b5e test for pad users 2014-12-24 04:01:18 +00:00
John McLear edc5669fa6 Merge pull request #2344 from ether/backend-tests
Backend tests
2014-11-28 00:04:12 +00:00
John McLear 8b787b8d23 readme docs for backend tests 2014-11-27 23:58:50 +00:00
John McLear 936e92e044 fix tests in FF 2014-11-27 23:48:14 +00:00
John McLear d36911da30 fix timeslider tests 2014-11-27 23:36:19 +00:00
John McLear 47029f2e6b diable caret tests for now 2014-11-27 23:10:40 +00:00
John McLear 617514b335 mst tests still brkoen but it runs 2014-11-27 17:12:24 +00:00
John McLear ff58897679 fix frontend tests 2014-11-27 16:58:04 +00:00
John McLear fa5130978c path issues for supertitties 2014-11-26 22:10:56 +00:00
John McLear e9115880b3 final api test written for now 2014-11-26 21:44:50 +00:00
John McLear 198e211671 4 more to go 2014-11-26 21:36:57 +00:00
John McLear 253d6da2ac 60% of backend api tests written 2014-11-26 21:19:55 +00:00
John McLear 98cc725300 30% of session and group tests done 2014-11-26 21:06:35 +00:00
John McLear f3c2ac6d94 mowah pad tests, tea time 2014-11-26 19:44:38 +00:00
John McLear 5434d2118d tidy up and re-organize 2014-11-26 19:28:49 +00:00
John McLear c0679980bf all pad tests with content 2014-11-26 19:25:09 +00:00
John McLear 1347a814f0 basic pad tests without test logic yet 2014-11-26 17:53:31 +00:00
John McLear 16f3ebb3ba handle auth fails 2014-11-26 17:34:44 +00:00
John McLear 7a4a3b5ef3 make internal note of which endpoints need testing 2014-11-26 01:11:42 +00:00
John McLear 3ac833d455 basic test runner 2014-11-25 22:47:22 +00:00
Prateek Saxena 2dd874376a Update frontend language tests for new keyboard shortcut convention
8af34a2295 introduced a failing test frontend test-
https://travis-ci.org/ether/etherpad-lite/builds/37931978

This commit updates both the German and English strings even though
the German locale files haven't been updated yet. The tests will
continue to fail but will stop as soon as translatewiki catches up.
2014-10-14 18:46:12 +05:30
Luc Didry 3d8452b143 Replace tabs indentation with spaces indentation
Some files are obviously external libraries, I didn't touch them
2013-12-05 08:41:29 +01:00
Eric Schrijver b34224559d ‘Etherpad Lite’ -> ‘Etherpad’ 2013-09-29 13:57:37 +02:00
Eric Schrijver 384f500d4c Clarify how to access tests
Add @marcelklehr’s clarification in https://github.com/ether/etherpad-lite/issues/1859
2013-09-01 11:23:31 +02:00
Dave Longley 5688350bf1 Adapt and add slowness test from @JohnMcLear.
- The test now ensures that all three key events are fired when
  sending keys. Previously, only the 'keypress' event was sent,
  which failed to trigger very slow code on webkit browsers (as
  it is triggered by 'keyup'). All three events should really be
  sent whenever sending keys to the browser to ensure that we're
  adequately testing real behavior. See the 'sendkeys' plugin
  for more; it only sends 'keypress'.
2013-07-14 16:46:12 -04:00
Chia-liang Kao 837d3bcfbf Update sauce key 2013-06-15 11:16:40 +08:00
Chia-liang Kao f8729d2188 use SAUCE_ACCESS_KEY 2013-06-07 01:00:22 +08:00
John McLear 11341eb095 add a test to show weird behavior 2013-03-19 12:52:14 +00:00
John McLear 13ee96dce0 more tests but still fundamental flaw with arrow keys 2013-03-18 22:14:41 +00:00
John McLear ee6a7d0b0c most test pass but important ones failed 2013-03-18 22:09:51 +00:00
John McLear fb9d46fc51 document the required tests 2013-03-18 20:08:58 +00:00
John McLear 99ac407f08 working caret position function 2013-03-17 23:16:23 +00:00
John McLear 81f0ef73ab beginning of FE tests for caret tracking which is easily broken when you add weird line heights to pads 2013-03-17 22:15:18 +00:00
John McLear 29c0d790b5 fix undo test 2013-03-14 14:48:23 -03:00
John McLear 24188d7007 this should pass more tests.. 2013-03-14 14:36:54 -03:00
John McLear 1462d8e80c now IE friendly 2013-03-14 14:22:58 -03:00
John McLear 6bac01009b missed an evt 2013-03-14 13:52:20 -03:00
John McLear 34c2cf40fa This isn't ideal, basically some browsers interact with keypress/keydown in different ways so this is a workaround but it's not perma 2013-03-14 13:51:23 -03:00
John McLear 12107859bb fix tests in firefox as firefox fires on keypress not down 2013-03-14 13:41:49 -03:00
John McLear b81be97f94 typo 2013-03-13 15:08:19 -03:00
John McLear 5690f2d01e not z, is b! 2013-03-13 15:06:08 -03:00
John McLear b4ec07312b add keystroke tests for relevant buttonpresses and change naming schema to something more sane 2013-03-13 15:00:04 -03:00
John McLear 60df48e485 ltr test and fix rtl test 2013-03-06 15:02:05 +00:00
John McLear 38499465c3 fix chat simulation test to work in android 2013-03-05 19:01:22 +00:00
John McLear d8154deee3 more fixes 2013-03-01 23:40:25 +00:00
John McLear 4e205fe0af fix monospace text 2013-03-01 23:33:24 +00:00
John McLear cadb671ae1 this approach seems to work better for change in latest jQ 2013-03-01 23:29:12 +00:00
John McLear 3460159f68 fix a test 2013-03-01 14:04:33 +00:00
Peter 'Pita' Martischka 70c0591d35 Make iframe selectors work with jquery 1.9 2013-02-10 22:02:24 +00:00
Peter 'Pita' Martischka 8d8487dfa6 Made jquery browser usable in testframework 2013-02-10 21:49:00 +00:00
John McLear 6651ed0b7a allow all timeslider tests to run 2013-02-09 17:18:13 +00:00
mluto ae6a9c25ae Fixed "jumps to a revision given in the url" test 2013-02-07 17:34:31 +01:00
John McLear 8c0fb090eb works in all 3 major browsers 2013-02-07 15:50:59 +00:00
John McLear f42d3820a5 fix timeslider tests 2013-02-07 15:24:30 +00:00
John McLear 7bf8dad6f9 Merge pull request #1460 from ether/timeslider-labels
timeslider label tests, fix and fix firefox page up down
2013-02-06 15:43:54 -08:00
John McLear e4032f4d74 timeslider label tests 2013-02-06 23:28:46 +00:00
John McLear de07d5a3e1 make plugin specs finally work 2013-02-04 00:03:25 +00:00
mluto 0b90e5752b Added a test to check the export-url 2013-01-28 21:38:56 +01:00
mluto 3002807741 Added tests for revision-jumping 2013-01-28 21:12:50 +01:00
mluto ae07b73840 Increased timeouts to make IE9 happy, made button-test more strict 2013-01-15 22:51:53 +01:00
mluto 09fa1d49a1 Added ability to load the same pad twice with helper.newPad, use this in load-message-tests 2013-01-15 22:17:40 +01:00
John McLear bb9097e528 Merge pull request #1355 from mluto/chat-no-empty-line
prevent empty chat-messages from being sent
2013-01-14 14:25:46 -08:00
mluto adf5c97664 Added test for empty-message-block 2013-01-14 17:45:11 +01:00
John McLear 33e0ec2097 Merge pull request #1334 from mluto/load-more-chat-messages
Load more than 100 chat messages using a 'load more'-link
2013-01-13 10:31:45 -08:00
mluto 21b99ccd53 use always() instead of done() and call expect() in there, fixed whitespace 2013-01-13 11:29:28 +01:00
mluto c3dd433c99 Fixed test-names, use waitFor instead of setTimeout 2013-01-13 11:03:52 +01:00
mluto 176719b331 Added tests 2013-01-13 10:39:13 +01:00
John McLear 7a2f16f288 dont run timeslider test for now 2013-01-07 11:49:04 +00:00
Marcel Klehr f830602cb2 Add rtl frontend test 2012-12-23 18:17:27 +01:00
John McLear 5055852635 Merge pull request #1227 from ether/tests/add-timeslider-revisions-test
Add a timeslider test
2012-12-08 06:46:14 -08:00
Marcel Klehr 80ce0b5edb Refine timeslider test 2012-12-07 16:20:23 +01:00
John McLear eb93ce2aa6 a test for adding any letter from alphabet can be extended to include foreign cahrs infact please DO THIS 2012-11-30 23:33:22 +00:00
Marcel Klehr 103e0f6747 Add the basic structure of a timeslider test 2012-11-26 21:15:10 +01:00
johnyma22 aebf6ee1e8 language test should pass int ravis now 2012-11-21 22:22:01 +00:00
johnyma22 28cd6e64b3 make runner CSS more sane 2012-11-21 20:09:31 +00:00
John McLear 122093904f Actually fix the language tests... 2012-11-21 18:14:05 +00:00
John McLear db5119f798 Fix tests to run on IE8 etc.
A bit more fragile but so is the life of supporting older browsers.
2012-11-21 17:53:46 +00:00
John McLear 2260b1fc62 Test for PR 1188
https://github.com/ether/etherpad-lite/pull/1188
2012-11-21 17:52:10 +00:00
John McLear 323517c6dc Merge pull request #1181 from marcelklehr/fix/lang-test-dont-use-setimeout
dont use setimeout for lang tests
2012-11-18 13:09:35 -08:00
Marcel Klehr c1f9028d19 Fix lang frontend test to 'waitFor' the 'localized' event 2012-11-18 20:11:16 +01:00
Marcel Klehr f20af4818c Revert "Make language frontend test pass"
Shouldn't have used setTimeout here...
This reverts commit ff0c9bb4a0.
2012-11-18 19:55:13 +01:00
Marcel Klehr bec2c3692d Always display the test overview panel 2012-11-18 12:49:59 +01:00
Marcel Klehr 1b409d7b9d Scroll down the list of tests after a test completed 2012-11-18 12:49:34 +01:00
Marcel Klehr ff0c9bb4a0 Make language frontend test pass 2012-11-17 16:29:11 +01:00
Peter 'Pita' Martischka c008d7bbbe Merge branch 'develop' into feature/i18n 2012-11-13 08:47:38 -08:00
Peter 'Pita' Martischka 7d174855c4 Give the browser more time to save the cookie at change_user_name test 2012-11-13 08:39:48 -08:00
Peter 'Pita' Martischka e13219fec9 deactive test for issue #1125 2012-11-13 08:05:05 -08:00
johnyma22 3830c878d2 change language test -- note i didnt include test for cookie persistance 2012-11-13 07:47:47 -08:00
Peter 'Pita' Martischka 03d3cd9f24 back to sauce connect download from sauce labs 2012-11-11 19:07:41 -08:00
Peter 'Pita' Martischka 68ed9b219f Fixed another sendkeys bug 2012-11-11 19:04:28 -08:00