Cmcmahon has uploaded a new change for review.

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

Change subject: QA: tie moderation message to first topic
......................................................................

QA: tie moderation message to first topic

by way of a nested element

The moderation test fails incorrectly if some message other than the
first topic is moderated.

Change-Id: I885ffec6cdaf7f6cffc55f3e342bc085b02f6a09
---
M tests/browser/features/support/pages/flow_page.rb
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/41/171441/1

diff --git a/tests/browser/features/support/pages/flow_page.rb 
b/tests/browser/features/support/pages/flow_page.rb
index e982549..3826676 100644
--- a/tests/browser/features/support/pages/flow_page.rb
+++ b/tests/browser/features/support/pages/flow_page.rb
@@ -45,7 +45,10 @@
   div(:flow_first_topic, css: ".flow-topic", index: 0)
   h2(:flow_first_topic_heading, css: ".flow-topic h2", index: 0)
   div(:flow_first_topic_body, css: ".flow-post-content", index: 0)
-  div(:flow_first_topic_moderation_msg, css: "div.flow-topic-titlebar 
div.flow-moderated-topic-title")
+  div(:flow_first_topic_moderation_msg) do |page|
+    page.flow_first_topic_element.div_element(css: "div.flow-topic-titlebar 
div.flow-moderated-topic-title")
+  end
+
   div(:flow_first_topic_summary) do |page|
     page.flow_first_topic_element.div_element(css: ".flow-topic-summary")
   end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I885ffec6cdaf7f6cffc55f3e342bc085b02f6a09
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Cmcmahon <cmcma...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to