jenkins-bot has submitted this change and it was merged.

Change subject: Some tests for redirect loops.
......................................................................


Some tests for redirect loops.

Bug: 54403
Change-Id: I5e8a55c9d2edfcd2772e9e11f27662305b070347
---
M tests/browser/features/updates.feature
1 file changed, 15 insertions(+), 0 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/browser/features/updates.feature 
b/tests/browser/features/updates.feature
index 7b184f3..e25a148 100644
--- a/tests/browser/features/updates.feature
+++ b/tests/browser/features/updates.feature
@@ -32,6 +32,21 @@
     When a page named IRedirectToNonExistantPages%{epoch} exists with contents 
#REDIRECT [[IDontExist]]
     Then I am on a page titled IRedirectToNonExistantPages%{epoch}
 
+  @redirect_loop
+  Scenario: Pages that redirect to themself don't throw errors
+    When a page named IAmABad RedirectSelf%{epoch} exists with contents 
#REDIRECT [[IAmABad RedirectSelf%{epoch}]]
+    Then I am on a page titled IAmABad RedirectSelf%{epoch}
+
+  @redirect_loop
+  Scenario: Pages that redirect to themself don't throw errors
+    When a page named IAmABad RedirectChain%{epoch} A exists with contents 
#REDIRECT [[IAmABad RedirectChain%{epoch} B]]
+    And a page named IAmABad RedirectChain%{epoch} B exists with contents 
#REDIRECT [[IAmABad RedirectChain%{epoch} C]]
+    And a page named IAmABad RedirectChain%{epoch} C exists with contents 
#REDIRECT [[IAmABad RedirectChain%{epoch} D]]
+    And a page named IAmABad RedirectChain%{epoch} D exists with contents 
#REDIRECT [[IAmABad RedirectChain%{epoch} A]]
+    Then I am on a page titled IAmABad RedirectChain%{epoch} D
+    When a page named IAmABad RedirectChain%{epoch} B exists with contents 
#REDIRECT [[IAmABad RedirectChain%{epoch} D]]
+    Then I am on a page titled IAmABad RedirectChain%{epoch} B
+
   Scenario: Pages weights are updated when new pages link to them
     Given a page named WeightedLink%{epoch} 1 exists
     And a page named WeightedLink%{epoch} 2/1 exists with contents 
[[WeightedLink%{epoch} 2]]

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5e8a55c9d2edfcd2772e9e11f27662305b070347
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: Chad <ch...@wikimedia.org>
Gerrit-Reviewer: Cmcmahon <cmcma...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to