Page MenuHomeWickedGov Phorge

investigate.js
No OneTemporary

Size
972 B
Referenced Files
None
Subscribers
None

investigate.js

'use strict';
const assert = require( 'assert' ),
LoginAsCheckUser = require( '../checkuserlogin' ),
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();
assert( await InvestigatePage.hasPermissionErrors.isExisting() );
} );
} );
describe( 'With CheckUser user group', () => {
before( async () => {
await LoginAsCheckUser.loginAsCheckUser();
await InvestigatePage.open();
} );
it( 'Should show targets input', async () => {
assert( await InvestigatePage.targetsInput.isExisting() );
} );
it( 'Should show duration selector', async () => {
assert( await InvestigatePage.durationSelector.isExisting() );
} );
it( 'Should show reason field', async () => {
assert( await InvestigatePage.reasonInput.isExisting() );
} );
} );
} );

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 19, 03:44 (1 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a2/d1/203a176ded49b96722db62a7b92a
Default Alt Text
investigate.js (972 B)

Event Timeline