Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6019572
checkuserlog.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
checkuserlog.js
View Options
'use strict'
;
const
LoginAsCheckUser
=
require
(
'../checkuserlogin'
);
const
CheckUserLogPage
=
require
(
'../pageobjects/checkuserlog.page'
);
describe
(
'CheckUserLog'
,
()
=>
{
describe
(
'Without CheckUser user group'
,
()
=>
{
it
(
'Should display permission error to logged-out user'
,
async
()
=>
{
await
CheckUserLogPage
.
open
();
await
expect
(
await
CheckUserLogPage
.
hasPermissionErrors
).
toExist
();
}
);
}
);
describe
(
'With CheckUser user group'
,
()
=>
{
before
(
async
()
=>
{
await
LoginAsCheckUser
.
loginAsCheckUser
();
await
CheckUserLogPage
.
open
();
}
);
describe
(
'Verify checkuser can interact with the CheckUser log'
,
()
=>
{
it
(
'Should show target input'
,
async
()
=>
{
await
expect
(
await
CheckUserLogPage
.
targetInput
).
toExist
();
}
);
it
(
'Should show initiator input'
,
async
()
=>
{
await
expect
(
await
CheckUserLogPage
.
initiatorInput
).
toExist
();
}
);
it
(
'Should show start date selector'
,
async
()
=>
{
await
expect
(
await
CheckUserLogPage
.
startDateSelector
).
toExist
();
}
);
it
(
'Should show end date selector'
,
async
()
=>
{
await
expect
(
await
CheckUserLogPage
.
endDateSelector
).
toExist
();
}
);
it
(
'Should show search button'
,
async
()
=>
{
await
expect
(
await
CheckUserLogPage
.
search
).
toExist
();
}
);
it
(
'Should be able to use the filters to search'
,
async
()
=>
{
// @todo check if the filters had any effect?
await
CheckUserLogPage
.
initiatorInput
.
setValue
(
process
.
env
.
MEDIAWIKI_USER
);
await
CheckUserLogPage
.
initiatorInput
.
click
();
// Initiator input will be missing if the request failed.
await
expect
(
await
CheckUserLogPage
.
initiatorInput
).
toExist
();
}
);
}
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 4 2026, 14:38 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e2/ce/ecb2d8d8d8ad285e6b21482a5e97
Default Alt Text
checkuserlog.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment