Commit Graph

37 Commits

Author SHA1 Message Date
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
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
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
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
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
Niklas Laxström
48a5772e9e More refactoring ULS font selection tests
Change-Id: I6595e279657948265c45407be2c01a4587fdbc94
2013-10-25 11:30:47 +02: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
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
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
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
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
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
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
Zeljko Filipin
2547ed87b5 Moved ULS tests from browsertests repository
Change-Id: I4f4a4c5530ad7e5dff70171b59a589dc98b1ef29
2013-08-27 12:04:58 +02:00