Cmcmahon has uploaded a new change for review.

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

Change subject: QA: update user strings, remove unnecessary expect clause
......................................................................

QA: update user strings, remove unnecessary expect clause

Change-Id: Id0327cb59c8f6e977c58524c008af5f84521c3e6
---
M tests/browser/features/step_definitions/moderation_steps.rb
1 file changed, 3 insertions(+), 3 deletions(-)


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

diff --git a/tests/browser/features/step_definitions/moderation_steps.rb 
b/tests/browser/features/step_definitions/moderation_steps.rb
index 48e6935..2587661 100644
--- a/tests/browser/features/step_definitions/moderation_steps.rb
+++ b/tests/browser/features/step_definitions/moderation_steps.rb
@@ -27,7 +27,7 @@
 end
 
 When(/^I see a dialog box$/) do
-  expect(on(FlowPage).dialog_element.when_present).to be_visible
+  on(FlowPage).dialog_element.when_present
 end
 
 Then(/^I confirm$/) do
@@ -39,9 +39,9 @@
 end
 
 Then(/^the top post should be marked as deleted$/) do
-  
expect(on(FlowPage).flow_first_topic_moderation_msg_element.when_present.text).to
 match("This topic was locked by Selenium user")
+  
expect(on(FlowPage).flow_first_topic_moderation_msg_element.when_present.text).to
 match("This topic has been deleted")
 end
 
 Then(/^the top post should be marked as suppressed$/) do
-  
expect(on(FlowPage).flow_first_topic_moderation_msg_element.when_present.text).to
 match("This topic was locked by Selenium user")
+  
expect(on(FlowPage).flow_first_topic_moderation_msg_element.when_present.text).to
 match("This topic has been suppressed")
 end

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id0327cb59c8f6e977c58524c008af5f84521c3e6
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