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:
pulse-triage[bot]
2026-09-09 13:17:03 +01:00
parent 78a6a9f34a
commit cbf995df5e
2 changed files with 16 additions and 4 deletions
@@ -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();
});