전역 구조 리팩터링 및 테스트 확장

This commit is contained in:
JiWoong Sul
2025-09-29 01:51:47 +09:00
parent c00c0c9ab2
commit fef7108479
70 changed files with 7709 additions and 3185 deletions

View File

@@ -41,7 +41,9 @@ void main() {
testWidgets('FEATURE_VENDORS_ENABLED=false 이면 스펙 페이지를 노출한다', (tester) async {
dotenv.testLoad(fileInput: 'FEATURE_VENDORS_ENABLED=false\n');
await tester.pumpWidget(_buildApp(const VendorPage()));
await tester.pumpWidget(
_buildApp(VendorPage(routeUri: Uri(path: '/masters/vendors'))),
);
await tester.pump();
expect(find.text('제조사(벤더) 관리'), findsOneWidget);
@@ -71,7 +73,9 @@ void main() {
),
);
await tester.pumpWidget(_buildApp(const VendorPage()));
await tester.pumpWidget(
_buildApp(VendorPage(routeUri: Uri(path: '/masters/vendors'))),
);
await tester.pumpAndSettle();
expect(find.text('V-001'), findsOneWidget);
@@ -101,7 +105,9 @@ void main() {
),
);
await tester.pumpWidget(_buildApp(const VendorPage()));
await tester.pumpWidget(
_buildApp(VendorPage(routeUri: Uri(path: '/masters/vendors'))),
);
await tester.pumpAndSettle();
await tester.tap(find.text('신규 등록'));
@@ -155,7 +161,9 @@ void main() {
);
});
await tester.pumpWidget(_buildApp(const VendorPage()));
await tester.pumpWidget(
_buildApp(VendorPage(routeUri: Uri(path: '/masters/vendors'))),
);
await tester.pumpAndSettle();
await tester.tap(find.text('신규 등록'));