Commit Graph

284 Commits

Author SHA1 Message Date
jenkins-bot
f74f7c6c4e Merge "Fix for IME menu integration tests" 2013-10-01 13:56:03 +00:00
Kartik Mistry
2461d57220 Fix for IME menu integration tests
Make sure to click only when Input Method indicator is available.

Change-Id: Ieff61d74a8ea5b8bcb7aafdc94865dee4927dc97
2013-10-01 19:02:10 +05:30
cmcmahon
eae3ac7d3b resetting all prefs on beta causes VE tests to fail
Change-Id: Ifdbe3e0d7513c7402b3c17cdb9ec654a25b55947
2013-09-30 17:13:16 -07:00
Amir E. Aharoni
d501ad89de Replace deprecated method
Change-Id: I1b79c172d032d96651d5b5c36cbf0c662081da28
2013-09-26 23:08:53 -07:00
Kartik Mistry
039c91d1d5 Integration tests for live preview of display language
Bug: 53255

Change-Id: I1506ddd0ef68217ac114bdf4c29c62cd071b1900
2013-09-26 22:51:37 -07:00
Zeljko Filipin
7706d97c8a Renamed ULSPage to PanelPage
To make class name consistent with file name

Change-Id: If4d0f0a24d2534c9b73cc6cbb0ee14ab8c124ed9
2013-09-26 12:32:41 +02:00
Zeljko Filipin
fb56c5f12c Fixed "Unsupported input language" scenario
Tested on my machine, it now works on both Firefox and Chrome. 

Change-Id: I8c810b355ed1407307b57699f8427f487ab1a08a
2013-09-25 16:13:11 +00:00
Zeljko Filipin
b085d38b13 Updated Ruby gems
Change-Id: Ic71cbcc10ca0b5a3b79933d9e0cf9f155c1b17d3
2013-09-25 17:37:28 +02:00
Zeljko Filipin
e72a38e73f Cleanup: removed ULS from file names and feature names
Change-Id: Id45289ba710b9b543744655f8fbd0f9483923956
2013-09-25 17:18:39 +02:00
Niklas Laxström
06a386fa83 This scenario does not work with anon language selection
Change-Id: Ia54d6de807e81ccbbd062633a49ec7313c869fa7
2013-09-18 00:41:46 +00:00
Niklas Laxström
12f7f84edd Fix the test I broke
Change-Id: I3f8181f84b387ab811f5efc16c734800e3639a15
2013-09-17 16:40:52 -07:00
Niklas Laxström
3fc1c3299c Simplify tests
Change-Id: Ide435d4d11e9ab03c953ed91e949d55e46c5137e
2013-09-17 15:16:52 -07:00
Niklas Laxström
2d62e3e7f7 Simplify test code
Change-Id: I65c3edc85ee8619c7e77cca7622e7025799bdcad
2013-09-17 14:38:16 -07:00
jenkins-bot
f1ab048beb Merge "Updated: Integration tests for off-screen IME selector" 2013-09-17 06:57:21 +00:00
Kartik Mistry
74e6ac4fc0 Updated: Integration tests for off-screen IME selector
1. Removed sleep 1.0, not needed,
2. Removed ascii_vector.rb and ascii_mono.rb as we use, using_params
now.

Change-Id: Ieeb0eb3a58805fcbfdfd0a3349a427d4757472cb
2013-09-17 12:18:51 +05:30
Niklas Laxström
f43a00d5b8 Refactoring tests
Collaboratively

Change-Id: I6c5417a0681f9bb8596c36600a569df2ddd7bf9e
2013-09-16 15:55:51 -07:00
Kartik Mistry
e53f9176ce Integration tests for off-screen IME selector.
Change-Id: I0b3253ba9cb19afae41612435ef0a9604814f3ed
2013-09-13 23:23:14 -07:00
jenkins-bot
a7904a6d01 Merge "Make more tests pass in sandbox.translatewiki.net" 2013-09-06 12:44:05 +00:00
cmcmahon
813271b8a9 Wait longer, so the preference is saved.
Reported as bug 53772.

Change-Id: I8a0d6ae9d3cec06f953e6bb35abb9370e5551eec
2013-09-05 21:09:59 +00:00
Niklas Laxström
e36d9b1cc3 Regression: Using [...] to change language does not activate apply button
Bug: 53736
Change-Id: If52beb73f9f3f74cde63bd846974540682066ab6
2013-09-04 07:00:53 +00:00
Niklas Laxström
bcb2dd8b82 Make more tests pass in sandbox.translatewiki.net
* When ULS is in personal, cancel opens the language selector
  again but apply doesn't.
* Created separate steps for testing the ULS trigger in personal
  position, different behavior with different configuration.

Change-Id: Ifb7f101f2bfacd32c11cba69e7f2c01fe9bd9bb7
2013-09-04 09:37:28 +03:00
Santhosh Thottingal
3af403fee5 Make the cancel and apply button applicable for all modules
If a user does changes in module A, does not save or cancel,
goes to module B, does some changes, moves to other modules,
and finally presses Apply, all changes should get saved.

Similarly, if a user cancels, all changes should get cancelled.

This required moving the cancel and apply button outside of modules
and managed by the language settings framework.

Modules get mw.uls.settings.apply or mw.uls.settings.cancel triggers
to do whatever they want to do on apply or save.

Includes some refactoring related to this.

Bug: 53256
Change-Id: I7d773d33a980a78604b36e39bf96a5686870124e
2013-09-02 17:03:13 +02:00
Niklas Laxström
975e69d880 Cleanup and add documentation for tags
* Fixed one scenario to work with the default setting
* Fixed one typo in scenario
* Removed unused tags
* Documented the tags currently in use

Change-Id: I14687782857daf79dcd497b934dff99fc45a3997
2013-09-02 17:14:25 +03:00
Niklas Laxström
34146ea023 (bug 49738) Use correct name for wiki content language
Happens when anonymous user cannot change language, and the
language of the translation differs from the content language.

Change-Id: Ie4f15f1813eec992cfe060baf9cd7dcb5f8a0d95
2013-08-30 12:45:02 +03:00
Niklas Laxström
b90208affc New scenario: Discarding a live preview of a font keeps the previous font
Change-Id: I4dbd90263be5a35c654b850e6c3632959e8a3915
2013-08-30 12:18:26 +03:00
Niklas Laxström
53f19e9f70 Add test for language live preview cancellation
Change-Id: I4880667df23301f4235a05df575fb84554c17303
2013-08-30 10:47:01 +03:00
Niklas Laxström
773b8f42e6 Fix more tests for phantomjs
As a bonus got rid of JavaScript call.

Refactored uls-position code to a method.

Change-Id: I1df384a02909d430c12225525d5722a0520177ee
2013-08-30 10:47:01 +03:00
Niklas Laxström
54afab7ffc Assert that the login succeeded for more helpful error messages
Change-Id: I9f985d31de86fe2a062d10ca3f51fb2d7c727798
2013-08-30 10:47:01 +03:00
Niklas Laxström
a6e3ec586e Make tests pass in phantomjs
Change-Id: I0cb094b8a350b716cfb7b50ea6e370fd39fff1d6
2013-08-28 18:44:23 +03:00
Niklas Laxström
2a6ae9f162 More refactoring of tests per feature
Change-Id: Ie9acf09f9bb992f6e03ff6dfbb80e1e20a9d43ca
2013-08-28 14:56:24 +03:00
Niklas Laxström
3bd4bb4f03 Refactor ULS tests to reduce duplication and repetition
Change-Id: I96f1594f1b4d1960da9a8bc21e2a5c4727497b10
2013-08-28 14:08:17 +03:00
Niklas Laxström
d695b21381 Add new scenarios for font changes
There is currently some duplication between the various page objects
and other code. Those should be cleaned up incrementally.

Change-Id: I592829a00ca65bbecd5399b773c885c764c1cc06
2013-08-27 16:35:23 +03:00
Niklas Laxström
7f8f1136e8 Add gitignore and remove unsupported browsers
Change-Id: Ic415bcee0cfa8822a48396a2c1b086dbff200c2a
2013-08-27 14:03:47 +03:00
Zeljko Filipin
2547ed87b5 Moved ULS tests from browsertests repository
Change-Id: I4f4a4c5530ad7e5dff70171b59a589dc98b1ef29
2013-08-27 12:04:58 +02:00
Siebrand Mazeland
a373340aea Fix CSS error and add missing field labels, also update jQuery source
Change-Id: Ie30841d78befc04d58e8ec5c50c9fa51483a4088
2013-08-05 16:27:15 +08:00
Siebrand Mazeland
102f257427 Fix CodeSniffer errors and warnings
More fixes will be submitted upstream.

Change-Id: Ib22997f8756537b063fd6eed3f1f74f3eda315d7
2013-08-05 05:55:03 +02:00
Santhosh Thottingal
aee6c78935 Remove unused test html file
Change-Id: I66b897680c165837c81c4f736b87a6e11be98dbd
2013-07-19 11:43:57 +05:30
Amir E. Aharoni
b6698228d4 Allow loading redirects in Common languages
Bug: 49847
Change-Id: Ia2380a77ebad789a2f70a7a88a1bb9970199b1c5
2013-07-04 12:55:39 +00:00
Santhosh Thottingal
76e205234a Update webfonts test page
This was broken when the ULS javascript files were changed.

Change-Id: I7cb1769957a6514cd303aada459678a2ce8127ae
2013-05-22 11:52:22 +00:00
Niklas Laxström
142bdbd7c7 Better way to fix jslint warnings
Change-Id: Id56aa9c742bdd5dd7cec5848d1b44a4dafaca9c0
2013-05-22 09:41:20 +05:30
Santhosh Thottingal
bf270812f5 Fix all jshint errors
Change-Id: Ib8fb350132bb34c1e063eb644af5aeff833f95e8
2013-05-20 15:07:42 +05:30
Amir E. Aharoni
e99f5cf170 Preferences tests
This is a basic test that checks the writing preferences
does not result in an error.
It depends on I8fdc1a05 and I18a5ffb5.
It is very rudimentary: The saving test only checks that the API call
didn't result in an error. It should be enough to check for bug 41763,
but it doesn't really check that the options were written correctly.
It also doesn't do anything to distinguish anonymous and logged-in
users, the preferences for which work differently.

Change-Id: I417089eea64e8a84bd38a00bbb31cbb77dc5bd68
2013-01-09 14:45:28 +00:00
Amir E. Aharoni
c81c2170c3 Add redirect from als to gsw
The 'als' is used in a non-standard way in MediaWiki -
it may be used to represent the Allemanic language,
the standard code of which is 'gsw', while 'als'
is ISO 639 3 refers to Tosk Albanian, which is
not currently used in any way in MediaWiki.
This local fix adds a redirect for it.

Also add a test to check that it works correctly.

Change-Id: Id904cab129eb58f8b96ce493e77d21da7c44ea8b
2013-01-07 17:54:02 +02:00
Santhosh Thottingal
5a604d9f3f Updated webfonts test page with bold, italic, underline options
Works with font variants

Change-Id: Ic143498f1fa02f261e5740873a97929a8f6354b0
2012-11-14 17:05:25 +05:30
Siebrand Mazeland
d2d4bb5f67 Fix JSHint suggestions
Change-Id: I89dc3f39531f6426fd95b2521ba898cd4fbe04f2
2012-11-14 10:35:41 +05:30
Siebrand Mazeland
98d7a8d9f9 Reformat code.
Change-Id: Ic0a5b37fa01b4a13023e66af0518ea94919ee880
2012-11-11 10:34:10 +01:00
Amir E. Aharoni
5a4667c3fd Delete utils.data tests - they were moved to the jQuery component
Change-Id: Iead160c5845a64d4c0106037c2c7cf4d51eadae7
2012-10-10 16:27:20 +05:30
Amir E. Aharoni
8d31bf8c07 Updated util functions names after refactoring
jquery.uls.js is just updated from GitHub.

Change-Id: I506ab810d7136ba5d96dfdd469394a843110f8de
2012-10-08 20:50:49 +02:00
Santhosh Thottingal
99936c2b80 Update the test for webfonts
This was broken when jquery.uls moved to github

Change-Id: I874fb96301726792e7d22d66e71406192c44cf9f
2012-10-02 10:24:09 +05:30
Siebrand Mazeland
e1a4f7f0cb After training the PHPStorm code formatter.
See https://github.com/siebrand/MediaWiki-PHPStorm

Issue remains with anonymous functions in JavaScript.

Change-Id: I2b520f8df127452acf02deb659277a6465e6ca59
2012-09-17 17:10:59 -07:00