Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2750820
investigate.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
958 B
Referenced Files
None
Subscribers
None
investigate.js
View Options
'use strict'
;
const
LoginAsCheckUser
=
require
(
'../checkuserlogin'
);
const
InvestigatePage
=
require
(
'../pageobjects/investigate.page'
);
describe
(
'Investigate'
,
()
=>
{
describe
(
'Without CheckUser user group'
,
()
=>
{
it
(
'Should display permission error to logged-out user'
,
async
()
=>
{
await
InvestigatePage
.
open
();
await
expect
(
await
InvestigatePage
.
hasPermissionErrors
).
toExist
();
}
);
}
);
describe
(
'With CheckUser user group'
,
()
=>
{
before
(
async
()
=>
{
await
LoginAsCheckUser
.
loginAsCheckUser
();
await
InvestigatePage
.
open
();
}
);
it
(
'Should show targets input'
,
async
()
=>
{
await
expect
(
await
InvestigatePage
.
targetsInput
).
toExist
();
}
);
it
(
'Should show duration selector'
,
async
()
=>
{
await
expect
(
await
InvestigatePage
.
durationSelector
).
toExist
();
}
);
it
(
'Should show reason field'
,
async
()
=>
{
await
expect
(
await
InvestigatePage
.
reasonInput
).
toExist
();
}
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 17:12 (11 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f0/2d/eed8aae1a622a303500c06ebbbe2
Default Alt Text
investigate.js (958 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment