Tobias Gritschacher has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64068


Change subject: Selenium tests for handling of entities w/o labels in 
statements UI
......................................................................

Selenium tests for handling of entities w/o labels in statements UI

Bug: 48130
Change-Id: I8305a147bf52e430f80aeaf4d89313e232d472f4
---
M repo/tests/selenium/statements/statements_item_spec.rb
1 file changed, 23 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/68/64068/1

diff --git a/repo/tests/selenium/statements/statements_item_spec.rb 
b/repo/tests/selenium/statements/statements_item_spec.rb
index a288fa2..44665b0 100644
--- a/repo/tests/selenium/statements/statements_item_spec.rb
+++ b/repo/tests/selenium/statements/statements_item_spec.rb
@@ -73,10 +73,32 @@
         page.cancelStatement
       end
     end
+    it "should check handling of item & property with no label" do
+      on_page(ItemPage) do |page|
+        page.navigate_to items[0]["url"]
+        page.wait_for_entity_to_load
+        page.uls_switch_language("de", "Deutsch") # switch to german, no label 
for the item & the property should be set there
+        page.wait_for_entity_to_load
+        page.statement1Name.include?(properties_item[0]["id"]).should be_true
+        page.statement1ClaimValue1.include?(items[1]["id"]).should be_true
+        page.statement1ClaimValue1_element.click
+        page.wait_for_entity_to_load
+        @browser.title.include?(ITEM_ID_PREFIX + items[1]["id"]).should be_true
+        @browser.back
+        @browser.refresh
+        page.wait_for_entity_to_load
+        page.statement1Name_element.click
+        page.wait_for_entity_to_load
+        @browser.title.include?(PROPERTY_ID_PREFIX + 
properties_item[0]["id"]).should be_true
+      end
+    end
   end
 
   after :all do
-    # tear down
+    # tear down: switch to default language again
+    on_page(ItemPage) do |page|
+      page.uls_switch_language(LANGUAGE_CODE, LANGUAGE_NAME)
+    end
   end
 
 end
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/64068
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8305a147bf52e430f80aeaf4d89313e232d472f4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Tobias Gritschacher <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to