Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1425723
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
Api
=
require
(
'wdio-mediawiki/Api'
);
const
BlankPage
=
require
(
'wdio-mediawiki/BlankPage'
);
const
RecentChangesPage
=
require
(
'../pageobjects/recentchanges.page'
);
const
Util
=
require
(
'wdio-mediawiki/Util'
);
describe
(
'Special:RecentChanges'
,
()
=>
{
let
content
,
name
,
bot
;
before
(
async
()
=>
{
bot
=
await
Api
.
bot
();
}
);
beforeEach
(
async
()
=>
{
await
browser
.
deleteAllCookies
();
content
=
Util
.
getTestString
();
name
=
Util
.
getTestString
();
}
);
it
(
'shows page creation'
,
async
function
()
{
// First try to load a blank page, so the next command works.
await
BlankPage
.
open
();
// Don't try to run wikitext-specific tests if the test namespace isn't wikitext by default.
if
(
await
Util
.
isTargetNotWikitext
(
name
)
)
{
this
.
skip
();
}
await
bot
.
edit
(
name
,
content
);
await
browser
.
waitUntil
(
async
()
=>
{
const
result
=
await
bot
.
request
(
{
action
:
'query'
,
list
:
'recentchanges'
,
rctitle
:
name
}
);
return
result
.
query
.
recentchanges
.
length
>
0
;
}
);
await
RecentChangesPage
.
open
();
await
RecentChangesPage
.
liveUpdates
.
click
();
await
browser
.
waitUntil
(
async
()
=>
(
await
RecentChangesPage
.
titles
[
0
].
getText
()
)
===
name
,
{
timeout
:
10000
}
);
await
expect
(
await
RecentChangesPage
.
titles
[
0
]
).
toHaveText
(
name
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 11:52 (14 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/c3/97e109d36861a5f58940c184a6b2
Default Alt Text
recentchanges.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment