Last modified: 2014-09-30 11:37:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59844, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57844 - Migrate simple RSpec browser tests to Cucumber
Migrate simple RSpec browser tests to Cucumber
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
https://www.google-melange.com/gci/ta...
u=dev c=QA p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 16:03 UTC by tobias.gritschacher
Modified: 2014-09-30 11:37 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description tobias.gritschacher 2013-12-02 16:03:08 UTC
The task is to migrate some old Wikibase RSpec tests to cucumber. The old tests are located under the repo/tests/selenium/ directory in the Wikibase repository, see
https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/repo%2Ftests%2Fselenium
while modules and page-objects are located under
https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/selenium

The new cucumber tests (and all supporting modules and page objects, etc..) are located under selenium_cuc/ in the Wikibase extension, see
https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/selenium_cuc

The following tests should be rather easy to migrate:
(1) Edit-tab test: create a new Wikidata item and check if the edit-tab is not visible when browsing to that item.
Old RSpec-Test: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/repo%2Ftests%2Fselenium%2Fitem%2Fedit_tab_spec.rb

(2) Delete-item test: create a new Wikidata item, add labels, descriptions, etc.. and check if deleting the item (using the usual mediawiki-way of deleting content) works.
Old RSpec-Test: 
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/repo%2Ftests%2Fselenium%2Fitem%2Fdelete_item_spec.rb

(3) Non-existing-item test: go to a page of a Wikidata item that does not exist yet and check if this page behaves correctly (e.g. a link for creating that item is available).
Old RSpec-Test:
https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikibase/129f22419945ad414fda6701e91b25af9b6eb973/repo%2Ftests%2Fselenium%2Fitem%2Fnon_existing_item_spec.rb
Comment 1 vldandrew 2013-12-09 14:49:30 UTC
Hey, please assign the bug to me.
Comment 2 tobias.gritschacher 2013-12-09 15:01:01 UTC
The folder where the new cucumber tests reside changed since https://gerrit.wikimedia.org/r/#/c/98823/ got merged.
Instead of /selenium_cuc/ they are now in /tests/browser/.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links