fix: 인게임 작업 상태를 공용 toast로 통일한다

This commit is contained in:
2026-08-21 17:32:50 +00:00
parent 688dc96b24
commit 6b6a19b35e
19 changed files with 211 additions and 183 deletions
@@ -0,0 +1,29 @@
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import path from 'node:path';
import { describe, it } from 'node:test';
const migratedViewNames = [
'AuctionView.vue',
'BettingView.vue',
'InheritView.vue',
'NationBettingView.vue',
'NationStratFinanView.vue',
'NpcControlView.vue',
'SurveyView.vue',
'TournamentView.vue',
'TroopView.vue',
] as const;
void describe('transient action feedback contract', () => {
for (const viewName of migratedViewNames) {
void it(`${viewName} sends action feedback through the shared toast layer`, async () => {
const source = await readFile(path.resolve(import.meta.dirname, `../src/views/${viewName}`), 'utf8');
const template = source.slice(source.indexOf('<template>'));
assert.match(source, /useGameFeedback/);
assert.doesNotMatch(template, /role="status"/);
assert.doesNotMatch(template, /class="[^"]*(?:success|status)[^"]*"[^>]*>\s*\{\{/);
});
}
});