Commit Graph

157 Commits

Author SHA1 Message Date
jenkins-bot
3ed7cb54f1 Merge "Refactor two live preview scenarios" 2013-12-11 09:22:13 +00:00
Antoine Musso
9fa4b32c08 browsertests: profile for default settings
Some scenarii are meant to be tested on specific wiki instances such as
commmons.beta.wmflabs.org or sandbox.translatewiki.net. For the Gerrit
integration, we are using a fresh wiki having the default ULS settings,
hence the specific tests will definitely fail.

This patch introduces a new cucumber tag `@needs-custom-setup`, it is
meant to flag tests which require further configuration tweaking, for
example tests explicitly targetting an already existing wiki such as
beta or translatewiki

I am introducing a new cucumber profile 'ciwmf' which exclude any test
tagged '@needs-custom-setup' or '@phantomjs-bug'.  That profile is going
to be used by the Jenkins/Gerrit install using something like:

  cucumber -p ciwmf

equivalent to:

  cucumber -t '~@phantomjs-bug' -t '~@needs-custom-setup'

Marked some tests as being bugged on phantomjs:
* autonym ones because of bug 57101 "browser tests must normalize
  font-family".
* accept_language since we dont have yet a way to pass the accept
  language header via phantomjs.
* Commented out an 'input method is visible' test with Vector + Hebrew
  since it does not pass.
* Malayalam link is looked by title which is translated by default.

This patch is passing on my local wiki, albeit skipping a lot of steps.

Change-Id: Ib055f5470886e1b818d4c53cb4c61a751d81e154
2013-12-05 11:35:35 +01:00
Niklas Laxström
cdb21c9c49 Refactor two live preview scenarios
Change-Id: I8e0dc62e24f9f86232af6b68dc4809e858aa2367
2013-12-04 12:05:15 +02:00
Amir E. Aharoni
25a72faae3 Apply autonym class only to autonyms
Change-Id: I6383b9f4ac1f38f47b06a83bf3b009d2ce584215
2013-12-03 18:36:34 +02:00
Amir E. Aharoni
1a086cce15 Fixes for the Autonym test
Change-Id: Ic8d8eca516cfefc523fca0257ae1f14ea9b64d1b
2013-12-03 17:55:30 +02:00
Kartik Mistry
4208d71163 Make Autonym default font in test.
Make sure that Autonym font is loaded default in test page.

Change-Id: Ia97aa508312cfb2ce82c9fe61bac731ef9c2fe30
2013-12-03 20:11:06 +05:30
jenkins-bot
5755bafbd7 Merge "Reset preferences to make the test pass" 2013-12-03 10:36:46 +00:00
Amir E. Aharoni
23a0461c2e Reset preferences to make the test pass
Failed test: http://goo.gl/Uv5icL

Change-Id: Iaf12c2794ba60c1ceeaf34432340cf90a09a2d16
2013-12-03 10:35:54 +00:00
jenkins-bot
f8f76eeedf Merge "Changing readme file to point to mediawiki-selenium" 2013-12-03 10:30:14 +00:00
jenkins-bot
9c3e2211f4 Merge "Refactoring live preview" 2013-12-03 10:04:59 +00:00
Niklas Laxström
b04c6f8de2 Refactoring live preview
Change-Id: I351094b8d746d991b1f1d92f3dd097f092e3f0f5
2013-12-03 10:02:22 +00:00
mayankmadan
0dd22325c0 Changing readme file to point to mediawiki-selenium
Bug: 56089
Change-Id: I7597bd5636f5d02904a9812f01dd6cd148e16e31
2013-12-03 15:11:09 +05:30
Kartik Mistry
945e4242cc Add Version in tests/autonym.html
This will help in debugging, comparison of tests etc.

Change-Id: I2879641f864226235dc58023943f9091cca2ef86
2013-12-02 18:08:22 +05:30
jenkins-bot
aa1b7b8dc5 Merge "Fix "Autonym font should be used in the Interlanguage area of a page only with Interlanguage links"" 2013-12-02 11:13:05 +00:00
Niklas Laxström
5749d92c4f Remove @reset-preferences-after hook
Change-Id: I47595f5334fcc7b8fe6d4a7ea69d2b8345f06597
2013-12-02 11:47:02 +02:00
Niklas Laxström
f497a5683d Cleanup of unused tags
Change-Id: Idaa483cc59baa795e6e63fcbfd471498a3e4edb8
2013-12-02 11:38:40 +02:00
Niklas Laxström
6021061fc9 Fix "Autonym font should be used in the Interlanguage area of a page only with Interlanguage links"
Change-Id: Id521b3a0cf7f0957f835bda40906483d400a2691
Followup: I12b96411
2013-12-02 11:30:14 +02: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
Zeljko Filipin
7a9e890e06 Autonym font is applied only to language links
Broken test in cloudbees: http://goo.gl/G3EG3z

Bug: 56819

Change-Id: I734fe4835f6e7a44b446cd826e49086d6bd1bd5b
2013-11-27 09:19:05 +00:00
jenkins-bot
14b05ef00e Merge "Fixes to failing tests" 2013-11-26 10:15:05 +00: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
Santhosh Thottingal
ee71de833c Improve test page for autonym font
* Used table instead of list
* Font and size selection
* Display language codes

Change-Id: Ic3f7ef1bd1d1e5ff5b6fa7f6d8a8b9b7bf878068
2013-11-26 05:09:09 +00: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
jenkins-bot
b2f9e4211e Merge "Updated Ruby gems" 2013-11-14 11:21:59 +00:00
Zeljko Filipin
4d49b1ca6c Updated Ruby gems
mediawiki-selenium 0.1.13 fixed failed test caused by browser size
being to small and ULS was not completely visible:

https://wmf.ci.cloudbees.com/view/r-uls/job/UniversalLanguageSelector-co
mmons.wikimedia.beta.wmflabs.org-linux-firefox/128/testReport/(root)/Tri
gger%20in%20personal%20toolbar/Open_language_selector_when_logged_in/

Change-Id: I1cf74effc7bccd3b4925f6d6263ab57471b167d7
2013-11-14 11:54:17 +01: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
Zfilipin
0994ae1d95 Merge "Refactored scenario: Edit area fonts should not change on UI language change if the user preferences for edit area font are set" 2013-11-13 09:12:58 +00:00
Niklas Laxström
bd52ae0538 ResourceLoaderULSModule::getModifiedTime updates continuously
Fix is simple: cache the hash of content per language

Added PHPUnit test for the same

Bug: 56856
Change-Id: I590b27af220d6e790c70728062d1a04c098b3d11
2013-11-11 16:12:07 +05:30
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
Santhosh Thottingal
8430ac8833 Simplify the test code - create autonyms dynamically
Change-Id: Ie71963cb28a6346155dba065480be9601d48dea9
2013-11-10 11:36:48 +05:30
Santhosh Thottingal
e00df28903 Correct the path to the font in test file
Change-Id: I134be7f625464ab3d895535cc18d19930e67e447
2013-11-04 14:37:02 +00:00
Zeljko Filipin
47d5bda290 Updated to the new version of mediawiki-selenium gem
Needed to fix security problem with passwords being visible at Jenkins
machine.

Change-Id: Id828486113804bdc9e4afeba50d74c11bbb57d57
2013-11-04 11:26:49 +01:00
Zeljko Filipin
ed2ee05ff9 Updated to the latest version of mediawiki-selenium gem
Change-Id: I60ad73add189a496d2ec92fa16f137d288d38770
2013-11-04 10:27:49 +01: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