Commit Graph

71 Commits

Author SHA1 Message Date
Zeljko Filipin
30368d121e Running tests at language-browsertests.wmflabs.org
This will revert: https://gerrit.wikimedia.org/r/#/c/114457/

Change-Id: I53d7adc685820d421d774c196642bddc9e5f19b0
2014-02-21 12:50:54 +00:00
Kartik Mistry
efb1275fc7 Various fixes in font_selection tests.
1. Fixed comment in header comment (/s/disabled/enabled).
 2. Remove pending step for #56081 bug.

Change-Id: I9b1a74aa4c0305f529123f24dc05f8c8e5d4f58d
2014-02-18 11:27:01 +05:30
Zeljko Filipin
cf57dfbf69 Moved login and reset preferences to mediawiki_selenium Ruby gem
Bug: 56088
Change-Id: I3d4150295ec2f66e5ad20a90769b7bd4bb14763f
2014-02-11 14:51:37 +01:00
Santhosh Thottingal
27771fdeaf Restore enableWebfonts pref and remove uls-enable
This patch restores the enableWebfonts preference, stored inside
the uls-preferences blob. It existed as 'enable-webfonts' in
the past and was removed in
If735a733717596fae03042c5e277bd538bd8501f

Each wiki can be configured to load the fonts by default
using the new global variable $wgULSWebfontsEnabled.
Its default value is true (to load fonts).

This also removes the preference 'uls-enable', recently added in
I71b70d8ee7c3cad7f49b32e5dc494ef4fc1bdb2f

The initialization of ext.uls.webfonts.js is changed as well,
so that minimal webfonts JS library code is loaded,
and the rest is loaded only if a user requests it.

Bug: 60304
Change-Id: I49e812eae32266f165591c75fd67b86ca06b13f0
2014-02-10 17:40:30 +05:30
Kartik Mistry
473dc8536a Normalize the font-family name in browser test
Bug: 57101
Change-Id: I01a787f8576e309d313219bd560ce4be4469c438
2014-02-06 21:07:52 +05:30
Amir E. Aharoni
e9c4e63bc5 Fix the Autonym tests after the removal of the 'end' class
The end class was removed at
https://github.com/wikimedia/jquery.uls/pull/122

Change-Id: I548df1f14025cac0c4a89401474171d0558ff8b1
2013-12-31 12:03:22 +02:00
Zeljko Filipin
f647453a39 Removing pending block for a bug that was resolved
Had to increase timeout that waits for a div to disappear, the default
5 seconds was not enough. Increased timeout also fixes this test that
fails sometimes: http://goo.gl/YXBDAj

Bug: 56885
Change-Id: I2def25828865a21eb321d0d9ea2e57764d86c1a2
2013-12-17 11:50:39 +00:00
Niklas Laxström
b0efed428c Refactor another live preview scenario
But left it disabled because of bug 57967

Bug: 57967
Change-Id: I7b1543f526eac93c9a0200731a722332a7410b06
2013-12-04 12:22:15 +02:00
Niklas Laxström
cdb21c9c49 Refactor two live preview scenarios
Change-Id: I8e0dc62e24f9f86232af6b68dc4809e858aa2367
2013-12-04 12:05:15 +02:00
Niklas Laxström
b04c6f8de2 Refactoring live preview
Change-Id: I351094b8d746d991b1f1d92f3dd097f092e3f0f5
2013-12-03 10:02:22 +00:00
mayankmadan
78152b95c0 Prefer double-quoted strings in Ruby code
Bug: 57597
Change-Id: I12b96411abe255130e156e20fa41eef558460196
2013-11-28 14:25:55 +00:00
jenkins-bot
bbeb82f809 Merge "Remove unneeded () after visit" 2013-11-27 12:09:30 +00:00
Niklas Laxström
11fd508324 Remove unneeded () after visit
Change-Id: I34cccf69812be6e060d3f1dea1199da668e2ca31
2013-11-27 10:03:02 +00:00
Zeljko Filipin
0f331b5b03 Check that elements that do not need it do not use Autonym font
Change-Id: I2a865d61403b5556a8f6d69aa1fe3e10727e87ae
2013-11-27 11:33:44 +02:00
Niklas Laxström
35c4837816 Fixes to failing tests
Ambiguous match of "the selected interface font must be "Systemschriftart"":

Element is no longer attached to the DOM (Selenium::WebDriver::Error::StaleElementReferenceError)

Change-Id: I74d6c8245d413dbf2819a113a19476d9b998d3c4
2013-11-26 10:27:25 +01:00
Niklas Laxström
0f0198ded8 Use existing steps instead of execute_script
Change-Id: Ifb54a9162ac8b4b9c68aea1508081999ea7e7f6c
2013-11-22 12:30:00 +02:00
Amir E. Aharoni
cad5ec8dca A test for saving both ime and font preferences
Change-Id: I091f8db781bf7ea0fd8967c568604402a999356d
2013-11-22 15:43:47 +05:30
Amir E. Aharoni
2923accef7 Fix the autonym test with the new id for Input settings
Change-Id: I3ad6156761c8f4ab5a77165d07c56581a1b4edac
2013-11-22 04:40:25 +00:00
Niklas Laxström
77142fdfa6 Move the steps file back to correct folder
Change-Id: I8f4335c9886ae940645ead3d25f7f1c9381a33f4
2013-11-21 13:23:44 +02:00
jenkins-bot
d9173fa1a6 Merge "Regression test for bug 56913" 2013-11-21 11:16:41 +00:00
Zeljko Filipin
a0ab3a5526 Use page-object waiting API instead of Selenium waiting API
Fixes page-object deprecation warning.

More information:

http://watirwebdriver.com/waiting/
https://github.com/cheezy/page-object/wiki/Ajax-Calls

Change-Id: Ia18339e2fd6b23098b86dd96f3fa9c84f64c28c3
2013-11-21 11:25:24 +01:00
Niklas Laxström
2244518711 Regression test for bug 56913
Changed class to css because multiple classes don't seem to work.
Used _element.text because css selectors seem to return [] by default.

https://mingle.corp.wikimedia.org/projects/internationalization/cards/3822

Change-Id: Ide8c7bd22cc23bb84f24f99faf6b14c2d2ce91de
2013-11-21 11:44:20 +02:00
Niklas Laxström
ded20c61f2 Fix and enable feature Persistent settings
* Reuse existing steps where possible
* Rename steps file to match convention
* Moved unrelated steps to a new file
* Added wait for saving

https://mingle.corp.wikimedia.org/projects/internationalization/cards/3822

Bug: 56885
Change-Id: I480058430696579947187265b940ea46156f1519
2013-11-21 11:08:08 +02:00
Zeljko Filipin
06341f787f Refactored Autonym font feature
Removed old and ugly steps that are no longer used. Introduced one
small and beautiful step.

Fixes three failed Jenkins jobs:

https://wmf.ci.cloudbees.com/view/r-uls/job/UniversalLanguageSelector-co
mmons.wikimedia.beta.wmflabs.org-linux-firefox/128/testReport/(root)/Aut
onym%20font/

Change-Id: I68da4364592514d161996517875a06fd2942ff0f
2013-11-14 11:13:15 +01:00
jenkins-bot
767a6adb5a Merge "Refactor "Open language selector when logged in"" 2013-11-13 12:11:40 +00:00
Niklas Laxström
f884356c15 Refactor "Edit area should use the fonts selected by the user from ULS for a language"
* Removed step which different only in case of one letter
* Removed quotes from few steps
* Fixed the scenario, but marked it as pending due to a bug

Change-Id: Iab160782e73071b543ef550dc7d86171e3636d23
2013-11-13 12:45:46 +02:00
Niklas Laxström
cffbe79195 Refactor "Open language selector when logged in"
Removed tags @uls-in-sidebar-only and @uls-in-personal-only.
We will figure out a better solution.

Alterted the test so that it catches if the language selector is
not visible in the viewport to catch regressions like bug 56937.

Bug: 56937
Change-Id: Ie8a37bf4f38e9c82e0c14736f2bc29e8ec1331ff
2013-11-13 11:51:04 +02:00
Amir E. Aharoni
b0d905a554 Refactored scenario: Edit area fonts should not change on UI language change if the user preferences for edit area font are set
Started in a pairing session Amir and Željko, ended in session Niklas and Željko.

Change-Id: I30ef2b41cfdceda04818f16f06e0071c487b90b6
2013-11-11 10:22:17 +00:00
Niklas Laxström
967683c98e Refactoring Input method menu is not offscreen
Change-Id: Iff83160eb6c99d6109098e431341240a21274665
2013-10-31 13:47:04 +02:00
jenkins-bot
135d1bc2b7 Merge "Refactor Sticky input methods" 2013-10-31 11:42:09 +00:00
Kartik Mistry
ccbef283cd Autonym font integration tests.
Change-Id: I2fbedbf3b93c4410cc9fc765c3f4795d7986bf04
2013-10-31 10:02:56 +05:30
Niklas Laxström
3398a949e3 Refactor Sticky input methods
Change-Id: I20ee4e7b90ec9aaa3155fe2e357cf04388d0994c
2013-10-30 11:50:13 +02:00
Niklas Laxström
891b6977ce Refactoring Applying the live preview of interface font
We renamed get*font to just *font

Change-Id: Ib6992849a2bf927d2e2d465231df58857e506a62
2013-10-29 14:07:45 +00:00
Niklas Laxström
b47a8ac5d3 Refactoring Discarding live preview of interface font
Includes fix for content font as well

Change-Id: Ie97c5d45c6613889975ca6af59c6bd0856d331dc
2013-10-29 14:05:53 +00:00
Niklas Laxström
52372f5857 Refactoring ime tests
Scenarios:
* Input method menu
* Input method indicator is shown
* Unsupported input language (pending)

Added IMEPage

Change-Id: I1f68d177bd05baca6ae8da97364b81a4d851b8b6
2013-10-28 13:29:31 +02:00
Zeljko Filipin
e3c93d17fa Change the assertion back to original state
Bug: 56081
Change-Id: I16a8ee6c4d8aae8778f99f6e0cd0bfc7e0f32b4e
2013-10-25 12:24:57 +02:00
Zeljko Filipin
29ab2467f9 Mark a step as pending since it fails because of a known bug
Bug: 56081
Change-Id: Idfa0f67c95ab6ed2c6e6a3d8fa99d064a8eb871f
2013-10-25 12:19:39 +02:00
Niklas Laxström
48a5772e9e More refactoring ULS font selection tests
Change-Id: I6595e279657948265c45407be2c01a4587fdbc94
2013-10-25 11:30:47 +02:00
Niklas Laxström
a5c7b43282 Refactoring of ULS font selection tests
Change-Id: Ie4d5843f76bff277750a2d61a13b3297650e52f7
2013-10-23 12:33:33 +03:00
Zeljko Filipin
f45d5bfcd5 Refactoring tests to make them more robust
Fixed typo in feature description.
Merged two background steps since the last one did not have any actions
that could be done manually.
Removed assertions from a "given" (login) step. We already extensively
test logging in. If this extension needs login tests, they should go to
a separate feature file.
Moved methods from steps file to page file, following page object
pattern.

Change-Id: Ic5250970362718f5ed887c9ac8fd56948724b210
2013-10-23 09:01:28 +00:00
Amir E. Aharoni
eff4f8960d Edit area monospace font test
bug: 53734
Change-Id: Ia4abf6a47a18605c5a28f6f57aa8841584285f37
2013-10-21 23:25:20 +03:00
Zeljko Filipin
613edd4a3c Moving shared code to mediawiki-selenium Ruby gem
Bug: 53579
Change-Id: I3164a9640ec878723b622f42c7684ffdeedf9d8c
2013-10-04 12:29:08 +02:00
Zeljko Filipin
5a808ef394 Moved Cucumber hooks to hooks.rb file
Bug: 49812
Change-Id: Ib927b824a8854d1c4257a17db582595a22d70470
2013-10-01 16:30:54 +00:00
Zeljko Filipin
2c4a906889 Updated ULS repository to the latest version of shared test files
Bug: 53579
Change-Id: I9828866f3a3db24a95324bb82942f2c59382f2c9
2013-10-01 16:30:25 +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
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
e72a38e73f Cleanup: removed ULS from file names and feature names
Change-Id: Id45289ba710b9b543744655f8fbd0f9483923956
2013-09-25 17:18:39 +02:00