import assert from 'node:assert/strict'; import fs from 'node:fs'; import path from 'node:path'; import test from 'node:test'; const root = path.resolve(import.meta.dirname, '../..'); const page = fs.readFileSync(path.join(root, 'src/web/components/ClientOverviewPage.tsx'), 'utf8'); const feature = fs.readFileSync(path.join(root, 'src/web/features/activity-journal/ActivityJournalFeature.tsx'), 'utf8'); const styles = fs.readFileSync(path.join(root, 'src/web/styles/features/activity-journal.css'), 'utf8'); const model = fs.readFileSync(path.join(root, 'src/web/features/activity-journal/activityJournalModel.ts'), 'utf8'); test('journal is the last Gateway-only drawer and refreshes whenever it opens', () => { assert.match(page, / { assert.match(feature, /Важные события хранятся 30 дней/); assert.match(feature, /Сегодня[\s\S]*Вчера/); assert.match(feature, /Обновить журнал/); assert.match(feature, /Показать ещё/); assert.match(feature, /Журнал временно недоступен[\s\S]*Повторить/); assert.match(styles, /\.client-journal-skeleton/); assert.match(feature, /compactActivityJournalEvents\(events\)/); assert.match(model, /Подписки обновлялись без ошибок/); assert.match(feature, /
    [\s\S]*