Last modified: 2014-09-30 11:37:19 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
Hey, please assign the bug to me.
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/.