Page MenuHomePhabricator
Paste P6388

prefer-recent mess
ActivePublic

Authored by dcausse on Nov 28 2017, 5:15 PM.
Tags
None
Referenced Files
F11052251: prefer-recent mess
Nov 28 2017, 5:15 PM
Subscribers
None
diff --git a/tests/integration/features/prefer_recent_api.feature b/tests/integration/features/prefer_recent_api.feature
index 553b0262..6a521189 100644
--- a/tests/integration/features/prefer_recent_api.feature
+++ b/tests/integration/features/prefer_recent_api.feature
@@ -2,7 +2,7 @@
Feature: Searches with prefer-recent
Scenario Outline: Recently updated articles are prefered if prefer-recent: is specified
When I api search for PreferRecent First OR Second OR Third
- Then PreferRecent Second Second is the first api search result
+ Then PreferRecent Second is the first api search result
When I api search for prefer-recent:<options> PreferRecent First OR Second OR Third
Then PreferRecent Third is the first api search result
Examples:
@@ -15,7 +15,7 @@ Feature: Searches with prefer-recent
Scenario Outline: You can specify prefer-recent: in such a way that being super recent isn't enough
When I api search for prefer-recent:<options> PreferRecent First OR Second OR Third
- Then PreferRecent Second Second is the first api search result
+ Then PreferRecent Second is the first api search result
Examples:
| options |
| |
diff --git a/tests/integration/features/support/hooks.js b/tests/integration/features/support/hooks.js
index ea9ad93d..35e84330 100644
--- a/tests/integration/features/support/hooks.js
+++ b/tests/integration/features/support/hooks.js
@@ -405,7 +405,7 @@ defineSupportCode( function( { After, Before } ) {
yield runBatch( this, false, {
delete: [
'PreferRecent First',
- 'PreferRecent Second Second',
+ 'PreferRecent Second',
'PreferRecent Third',
]
} );
@@ -413,8 +413,8 @@ defineSupportCode( function( { After, Before } ) {
yield runBatch( this, false, {
edit: {
// Using epochs as content ensures the page is edited.
- 'PreferRecent First': "" + ( new Date() / 1 ),
- 'PreferRecent Second Second': "" + ( new Date() / 1 ),
+ 'PreferRecent First': "PreferRecent random text for field noram " + ( new Date() / 1 ),
+ 'PreferRecent Second': "PreferRecent " + ( new Date() / 1 ),
}
} );
@@ -424,7 +424,7 @@ defineSupportCode( function( { After, Before } ) {
yield runBatch( this, false, {
edit: {
- 'PreferRecent Third': "" + ( new Date() / 1 )
+ 'PreferRecent Third': "PreferRecent random text for field norm " + ( new Date() / 1 )
}
} );
} ) );