Page MenuHomeWickedGov Phorge

tempAccountsOnboardingIPRevealStep.test.js
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

tempAccountsOnboardingIPRevealStep.test.js

'use strict';
const TempAccountsOnboardingIPRevealStep = require( '../../../modules/ext.checkUser.tempAccountsOnboarding/components/TempAccountsOnboardingIPRevealStep.vue' ),
utils = require( '@vue/test-utils' );
describe( 'First step of temporary accounts onboarding dialog', () => {
it( 'renders correctly', () => {
const wrapper = utils.mount( TempAccountsOnboardingIPRevealStep );
expect( wrapper.exists() ).toEqual( true );
// Check the root element exists
const rootElement = wrapper.find(
'.ext-checkuser-temp-account-onboarding-dialog-step'
);
expect( rootElement.exists() ).toEqual( true );
// Check that the image element is present and has the necessary
// class for the image to be placed there.
const imageElement = rootElement.find(
'.ext-checkuser-temp-account-onboarding-dialog-image'
);
expect( imageElement.classes() ).toContain(
'ext-checkuser-image-temp-accounts-onboarding-ip-reveal'
);
// Expect that the main body is present, and contains the title and content
const mainBodyElement = rootElement.find(
'.ext-checkuser-temp-account-onboarding-dialog-main-body'
);
expect( mainBodyElement.exists() ).toEqual( true );
const titleElement = mainBodyElement.find( 'h5' );
expect( titleElement.exists() ).toEqual( true );
expect( titleElement.text() ).toEqual(
'(checkuser-temporary-accounts-onboarding-dialog-ip-reveal-step-title)'
);
const contentElement = mainBodyElement.find(
'.ext-checkuser-temp-account-onboarding-dialog-content'
);
expect( contentElement.exists() ).toEqual( true );
expect( contentElement.text() ).toEqual(
'(checkuser-temporary-accounts-onboarding-dialog-ip-reveal-step-content)'
);
} );
} );

File Metadata

Mime Type
text/plain
Expires
Oct 4 2026, 03:11 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4c/f4/29a5e851e98af405aa79a8a70816
Default Alt Text
tempAccountsOnboardingIPRevealStep.test.js (1 KB)

Event Timeline