https://bugzilla.wikimedia.org/show_bug.cgi?id=57844

       Web browser: ---
            Bug ID: 57844
           Summary: Migrate simple RSpec browser tests to cucumber
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to