Cmcmahon has submitted this change and it was merged.

Change subject: Revert "Replace fragile checks with checks for spinner on save"
......................................................................


Revert "Replace fragile checks with checks for spinner on save"

This reverts commit a8e1e15efb2f14a27605dc77966c650c4536a416.

Change-Id: I4f93a443ecc0b239fa505e0c3bdd457d2043042e
---
M tests/browser/features/step_definitions/flow_steps.rb
1 file changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Cmcmahon: Looks good to me, approved



diff --git a/tests/browser/features/step_definitions/flow_steps.rb 
b/tests/browser/features/step_definitions/flow_steps.rb
index a2682ea..145fa1c 100644
--- a/tests/browser/features/step_definitions/flow_steps.rb
+++ b/tests/browser/features/step_definitions/flow_steps.rb
@@ -73,8 +73,17 @@
 
 Then(/^the Flow page should contain (.+)$/) do |flow_topic|
   on(FlowPage) do |page|
-    page.small_spinner_element.when_present
-    page.small_spinner_element.when_not_present(20)
+    page.wait_until(20) do     # 10 seconds wasn't enough on ee-flow...
+      # TODO Also match the regexp '[2-9] seconds ago' in case of delays.
+      # TODO This should look in the particular topic that was added, not
+      # blindly look for text.
+      # It could note the ID of the first div with id 'flow-topic-<UUID>'
+      # before submitting the new topic post,
+      # then afterwards find the flow-topic-<UUID> div *preceding* that and 
search in there.
+      # Or after submit it could look for the Title of Flow Topic, find the
+      # flow-topic-container containing that and search in there.
+      page.text.include? "1 second ago" or page.text.include? "just now"
+    end
     page.flow_body.should match(flow_topic + @random_string + 
@automated_test_marker)
   end
 end

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I4f93a443ecc0b239fa505e0c3bdd457d2043042e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Cmcmahon <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to