Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429941
RecentChanges.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
RecentChanges.js
View Options
'use strict'
;
const
{
action
,
assert
,
utils
,
wiki
}
=
require
(
'api-testing'
);
describe
(
'Recent Changes'
,
()
=>
{
const
title
=
utils
.
title
(
'Recent_Changes_'
);
let
alice
;
before
(
async
()
=>
{
alice
=
await
action
.
alice
();
}
);
it
(
'should create page and get new page recent changes'
,
async
()
=>
{
const
edit
=
await
alice
.
edit
(
title
,
{
text
:
'Recent changes testing'
,
createonly
:
true
}
);
await
wiki
.
runAllJobs
();
const
results
=
await
alice
.
list
(
'recentchanges'
,
{
rctype
:
'new'
,
rctitle
:
title
}
);
assert
.
equal
(
results
[
0
].
type
,
'new'
);
assert
.
sameTitle
(
results
[
0
].
title
,
title
);
assert
.
equal
(
results
[
0
].
pageid
,
edit
.
pageid
);
assert
.
equal
(
results
[
0
].
revid
,
edit
.
newrevid
);
}
);
it
(
'should edit page and get most recent edit changes'
,
async
()
=>
{
const
rev1
=
await
alice
.
edit
(
title
,
{
text
:
'Recent changes testing..R1'
}
);
await
wiki
.
runAllJobs
();
const
results
=
await
alice
.
list
(
'recentchanges'
,
{
rctype
:
'edit'
,
rctitle
:
title
}
);
assert
.
equal
(
results
[
0
].
type
,
'edit'
);
assert
.
sameTitle
(
results
[
0
].
title
,
title
);
assert
.
equal
(
results
[
0
].
pageid
,
rev1
.
pageid
);
assert
.
equal
(
results
[
0
].
revid
,
rev1
.
newrevid
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 18:13 (7 h, 16 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7c/6e/f5646666b032f4d3eddc32f63814
Default Alt Text
RecentChanges.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment