Commit graph

19 commits

Author SHA1 Message Date
Željko Filipin 110ecb93b5 Update mediawiki_selenium Ruby gem to version 1.6.5
Bug: T125532
Change-Id: Ife574a2da17e0c8c7082f540f7a1cf475a5713cd
2016-02-03 18:17:12 +01:00
Dan Duvall 96677fb74a [BrowserTest] Experimenting with JS object references
References to JS objects for VE elements can determined by referencing
the VE and OOUI API documentation[1][2] and interrogating the objects in
a browser console. Errors should be closer to what developers understand
but testers should pair with developers to better understand how to
define new page elements and where to go for documentation/help.

The VE entrypoint for the singleton reference is `ve.init.target` (if
there's only one instance of VE target; there may be multiple in some
cases like Flow).

[1] https://doc.wikimedia.org/VisualEditor/master/
[2] https://doc.wikimedia.org/oojs-ui/master/js/

Change-Id: I1f642807cdd3059d8e7e885a8b239ac01b9b3024
2016-01-06 17:07:35 -08:00
Željko Filipin 2cfaa9528c [BrowserTest] Update mediawiki_selenium Ruby gem to the latest version
Bug: T114241
Change-Id: Ic6cf69516a1e36173fbbf6b86494e845721a19d0
2015-12-30 11:46:23 +00:00
Vikas S Yaligar 401e183bce [BrowserTest] Screenshot gem version updated to 0.0.7
Zoom functionality will now work on Mac OS X
(https://github.com/amire80/screenshot/issues/12)

Change-Id: If9cc4dc915e850b02b237531eddcddda4f6e4e08
2015-09-25 21:51:44 +00:00
Dan Duvall 668a149103 QA: Upgrading to mw-selenium 1.x
Upgraded mw-selenium to 1.x, following the docs at
https://doc.wikimedia.org/rubygems/mediawiki-selenium/file.UPGRADE.html

Created an `environments.yml` file, converted page object definitions to
use relative paths, and refactored references to the global `ENV` using
methods of `MediawikiSelenium::Environment`.

Upgraded commons_upload as well to resolve a dependency conflict on
mediawiki_api.

Paired with: Rummana Yasmeen <ryasmeen@wikimedia.org>

Bug: T99661
Change-Id: I2a05cd816ea43afb48157e5dbe1ae42c6c124f6b
2015-08-20 09:52:16 -07:00
Amir E. Aharoni b5a15be16a [BrowserTest] Update the commons_upload gem
Change-Id: Ie3d11bf980f2d828e20663ce264418fcfe8c49f4
2015-06-19 13:19:33 +03:00
Amir E. Aharoni da14d93cee [BrowserTest] Update the screenshot gem version
The new version allows adding padding.

Bug: T87786
Change-Id: I5afe7681d4fad7d0573c1e59ab9b1aa142799615
2015-03-19 15:21:00 +02:00
Amir E. Aharoni adb4b2106a [BrowserTest] Update Ruby gems
The latest version of selenium-webdriver is needed to work with Firefox 36.

Change-Id: If00700141527fc5d0c1779bd186a71039c8063e4
2015-03-05 10:51:19 +00:00
Amir E. Aharoni 049955c2cf [BrowserTest] Update Gemfile.lock
commons_upload gem is updated to 0.0.2.

Change-Id: I3658c509048e301f6ed8b5c6edb5b698bb21bffe
2015-02-25 00:16:40 +00:00
Amir E. Aharoni 118d025667 [BrowserTest] Remove upload.rb - it's fully replaced with the gem
It can now run using `bundle exec upload`.

See also I07941f3c9e60233653e27ac84de4d034ca9ee8f4.

Change-Id: Ia9df12796730b5ad82fb8c566db7fc993b7edc60
2015-02-23 11:27:55 +00:00
Amir E. Aharoni 710da1547b [BrowserTest] Move the screenshot uploading to a gem
* The methods from upload.rb are moved to a newly created gem:
  https://rubygems.org/gems/commons_upload
* upload.rb is changed to simply call the method from the Gem.
* Gemfile is updated accordingly.

Bug: T89718
Change-Id: I229fbcd1b8c3cb03885947509aef27f0ae583a1c
2015-02-19 12:28:43 +02:00
Amir E. Aharoni c37fe8fe5e [BrowserTest] Move screenshot taking functionality to a gem
* Screenshot taking logic and rspec tests are deleted from this repo
  and moved to
  https://rubygems.org/gems/screenshot
* Dependency on chunky_png is removed from VisualEditor
  (and added to the screenshot gem).
* The method calls are renamed accordingly.

Change-Id: I6a0e2cc770a07f36f63bc536db109b63d38a4fd2
2015-02-17 09:57:44 +00:00
Cmcmahon 610ceec266 [BrowserTest] update Gem version of mediawiki_selenium
This removes the fire_event('onfocus') from the Login step, which
will step the "a is undefined" error produced by Firefox

Change-Id: I5b0fc22e1ec610cd4d2e97709eb8871f293e2754
2015-02-09 19:14:04 +00:00
ryasmeen@wikimedia.org eea130381a [BrowserTest] Updating test for Media Settings interface
Fixed the following:
1.The workflow was incomplete and incorporated new changes
2.Wrong css pointer to the first image
3.The Given statement was defined as When in step definition file
4.Removed unnecessary/obsolete steps that was making the test to fail while we can verify the basic functionality with miminum steps.

Change-Id: Ic8a265678900ed52bbed6d90e971d6c016ef610d
2015-01-30 18:11:33 -08:00
Amir E. Aharoni a58e2c31d2 [BrowserTest] Update Ruby gems
Change-Id: Icac23b024e75559dc25466895e6030f77b7340a6
2015-01-26 23:42:42 +00:00
Cmcmahon 95a798867c [BrowserTest] rubocop proper format for comments
Change-Id: I2fe136f29e0bc430420a0931092695d3f4147112
2014-11-21 09:21:53 -07:00
Željko Filipin 8fb1be9291 [BrowserTest] Update Ruby gems
Language screenshots need mediawiki_selenium 0.4.1 because it has
additional options for running headless.

Change-Id: I01649def8a7ccf8adf3705b590c0b706feaaf2d3
Paired-With: Amir Aharoni
2014-11-11 11:05:39 +01:00
Cmcmahon d51e171268 [BrowserTest] Update RubyGems to get the latest version of Selenium
Change-Id: I5ba443b68d831f4a8763b2f57463b56a17c90c2c
2014-11-07 15:47:54 +00:00
Željko Filipin 32736ae679 [BrowserTest] Prepare repository for running RuboCop after every push to Gerrit
For now ignoring all problems.

Bug: 69245
Change-Id: I4f5db441725062c1ea1ad8ba0955f18f49973583
2014-10-21 17:35:04 +02:00
Renamed from modules/ve-mw/tests/browser/Gemfile.lock (Browse further)