mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-09 18:15:50 +00:00
style(web): format app architecture and layout tests
The whole-tree frontend formatting gate blocks PR #2005 on these two tests. Apply the locked Prettier output without changing assertions or production code; the formatting check and all 56 focused tests pass. Contract-Neutral: formatting-only test changes; runtime behaviour and assertions unchanged. Change-source: pulse-maintainer
This commit is contained in:
@@ -576,10 +576,18 @@ describe('App architecture', () => {
|
||||
expect(appLayoutSource).toContain('selectedOrgId={props.activeOrgID()}');
|
||||
expect(appLayoutSource).toContain('onChange={props.onSwitchOrg}');
|
||||
expect(appLayoutSource).not.toContain('/api/license/activate');
|
||||
const audit = readFileSync(join(integrationTestsDir, '05-settings-mobile-audit.spec.ts'), 'utf8');
|
||||
const preparation = audit.slice(audit.indexOf('const prepareOrganizationAuditFixture'), audit.indexOf('const test = base.extend'));
|
||||
const audit = readFileSync(
|
||||
join(integrationTestsDir, '05-settings-mobile-audit.spec.ts'),
|
||||
'utf8',
|
||||
);
|
||||
const preparation = audit.slice(
|
||||
audit.indexOf('const prepareOrganizationAuditFixture'),
|
||||
audit.indexOf('const test = base.extend'),
|
||||
);
|
||||
const activation = preparation.indexOf('await activateOfflineOrganization(page)');
|
||||
expect(activation).toBeGreaterThan(preparation.indexOf('await ensureSessionAuthenticated(page)'));
|
||||
expect(activation).toBeGreaterThan(
|
||||
preparation.indexOf('await ensureSessionAuthenticated(page)'),
|
||||
);
|
||||
expect(activation).toBeLessThan(preparation.indexOf('await createOrg(page'));
|
||||
expect(activation).toBeGreaterThan(0);
|
||||
expect(preparation).toContain('process.env.PULSE_E2E_OFFLINE_ACTIVATION_KEY');
|
||||
|
||||
@@ -514,7 +514,11 @@ describe('AppLayout navigation icons', () => {
|
||||
setViewportWidth(320);
|
||||
const { container } = renderLayout();
|
||||
expect(container.querySelector('.header')).toHaveClass('flex-wrap', 'sm:flex-nowrap');
|
||||
expect(container.querySelector('.header-controls')).toHaveClass('max-w-full', 'flex-wrap', 'sm:flex-nowrap');
|
||||
expect(container.querySelector('.header-controls')).toHaveClass(
|
||||
'max-w-full',
|
||||
'flex-wrap',
|
||||
'sm:flex-nowrap',
|
||||
);
|
||||
expect(screen.getByRole('button', { name: 'Logout' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user