Commit Graph

110 Commits

Author SHA1 Message Date
Željko Filipin
249d064c53 Implemented missing Cucumber step
Used in ime.feature:50.

Change-Id: I0bf52456e687d7ff2b1d54fc990d4ed5d2803a47
2014-03-25 12:01:44 +01:00
Zeljko Filipin
76b1d87151 Using the new way of starting a custom browser
mediawiki_selenium Ruby gem is now able to start local and remote browsers with
optional browser setup.

Paired with Kartik Mistry.

Bug: 62512
Change-Id: I61e5b688711b1976e8df8be94972fe35f6eeb9aa
2014-03-21 10:34:44 +00:00
Kartik Mistry
ab55d96031 Fixed spacing in return
Change-Id: I9ea35dc2c64526c0804706126ebe6db7b663fee6
2014-03-16 19:20:22 +05:30
Zeljko Filipin
b4af650730 Removed random page
Using a dedicated page instead of a random page. Paired  with Amir
Aharoni.
Bug: 62479
Change-Id: I3750ecf972f52f205fd30855455ef6259b9c911d
2014-03-11 16:13:16 +01:00
Kartik Mistry
3797187998 Autonym font browser tests refactoring
* Tofu detection selects system fonts over Autonym font.
 * Interlanguage Autonym font is blacklisted.
 * phantomjs bug is fixed.

Change-Id: I5c7433b917b8d7f79f706a4a7a97a6c6a9a6afa2
2014-03-11 10:45:50 +00:00
Zeljko Filipin
d38b431d2b Using @custom-browser Cucumber tag instead of @user_agent
Implementing the convention:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/Selenium#Option
al_tags

Bug: 61458
Change-Id: Iac411401a08eadfb04fd43f1d93ce2fd36fbea4a
2014-03-06 14:47:32 +01:00
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
Amir E. Aharoni
0be71e418e Remove failing tests from Commons
These tests fail because no Wikimedia has webfonts
enabled by default.
This will be addressed more thoroughly by rewriting
the tests to support the new setting, and by enabling
the feature by default on a new testing wiki.

Change-Id: Id197e0b2535097cf5e583e51427ca6130839e1ff
2014-02-20 17:58:23 +04:00
Amir E. Aharoni
05ab9f30dc Don't run the Autonym scenarios in beta sites, because they fail
This is supposed to be addressed more thoroughly in
I5c7433b917b8d7f79f706a4a7a97a6c6a9a6afa2
but until that is merged, they shouldn't run and cause failures.

Change-Id: Ie4e96f2cb0846b9117a26e9bfd902bbcab04eafd
2014-02-20 17:50:57 +04:00
Amir E. Aharoni
1ad4bf197c Don't run a feature with enabled webfonts on Beta Commons
This will fail because webfonts are currently disabled by default
on all Wikimeida wikis.

When a suitable wiki for running these tests will be created,
we'll make this feature run there.

Change-Id: Ia51c5d12bcd49621e85c83166faf855e3476bf5f
2014-02-20 17:30:36 +04: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
Cmcmahon
4081163aa5 Merge "Normalize the font-family name in browser test" 2014-02-07 16:18:21 +00:00
Zeljko Filipin
de11d83b6f Renamed mediawiki-selenium Ruby gem to mediawiki_selenium
Bug: 60820
Change-Id: I5fb2db6b2da94b0554e324b39de631b4117be7eb
2014-02-07 13:38:57 +01:00
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
cf3f1564c5 Move a pending step to the end to get more passing steps
Change-Id: I2bfd0ed60838cc4f75b1e3340aabe7654bebb9ff
2014-01-23 14:50:01 +02:00
Zeljko Filipin
caf8f11e93 Renamed page
To follow the naming convention.

Change-Id: I81820cb5e877ad5ebf6e2f806fa30c23d04d800a
2014-01-08 15:23:12 +01:00
Amir E. Aharoni
3ea4d83c02 Fix the Malayalam element selector in the live preview test
Change-Id: Ib552b88a8dca096e4b6c1c948e58b5aece52a483
2013-12-31 12:14:51 +02:00
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
aeaeb2bc47 Disabled Accept-Language feature for PhantomJS
Until PhantomJS is upgraded to version 1.9.2 Accept-Language feature
will fail:

https://integration.wikimedia.org/ci/job/mwext-browsertests-UniversalLan
guageSelector-phantomjs/95/console

Change-Id: I7e923189f3cdcb95fe94d93d0bdf78488f7435c4
2013-12-18 14:46:13 +00:00
Niklas Laxström
5f6995dd3e Fix "Live preview of display language changes can be reverted on cancel"
Change-Id: Ie70bd7c6c646084a3ded62fee79a5fd2437313f1
2013-12-18 12:16:32 +02:00
Zeljko Filipin
9422558de3 Replacing single quotes with double quotes
Bug: 57597
Change-Id: Icb3c0114d075cab103bbf4d7e0e9e1fd4ba0093c
2013-12-17 19:56:10 +01: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
Zeljko Filipin
7c8b976edb Fix Accept-Language feature for PhantomJS
mediawiki-selenium 0.1.15 is needed to make it work

Bug: 49813
Change-Id: I2e0e5d85e167e85262cb357f3a48f3336b848f6e
2013-12-14 10:27:16 +00:00
Amir E. Aharoni
fd366edc04 Test that common languages and worldwide appear in ULS
Bug: 53035
Change-Id: I8f7765a46dcc02e07142fe86d4d2545c10a7ae54
2013-12-12 16:43:08 +02:00
jenkins-bot
efbaa74126 Merge changes I799698e0,I7b1543f5
* changes:
  Removing font live preview test
  Refactor another live preview scenario
2013-12-11 09:22:59 +00:00
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
63af9387b2 Removing font live preview test
* This feature is named live preview of language
* There are two scenarios in font selection feature that also
  test live preview
* This test is actually making changes as well

Change-Id: I799698e08fc3d922259692de7ae0bbf5cbfd0a33
2013-12-04 12:27:29 +02: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
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
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
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
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