고객사 목록 쿼리스트링 연동 및 공통 JSON 파서 도입

This commit is contained in:
JiWoong Sul
2025-09-25 20:13:46 +09:00
parent 8a6ad1e81b
commit 900990c46b
27 changed files with 1458 additions and 176 deletions

View File

@@ -41,7 +41,9 @@ void main() {
testWidgets('플래그 Off 시 스펙 화면 유지', (tester) async {
dotenv.testLoad(fileInput: 'FEATURE_CUSTOMERS_ENABLED=false\n');
await tester.pumpWidget(_buildApp(const CustomerPage()));
await tester.pumpWidget(
_buildApp(CustomerPage(routeUri: Uri(path: '/masters/customers'))),
);
await tester.pump();
expect(find.text('회사(고객사) 관리'), findsOneWidget);
@@ -85,7 +87,9 @@ void main() {
),
);
await tester.pumpWidget(_buildApp(const CustomerPage()));
await tester.pumpWidget(
_buildApp(CustomerPage(routeUri: Uri(path: '/masters/customers'))),
);
await tester.pumpAndSettle();
expect(find.text('C-001'), findsOneWidget);
@@ -120,7 +124,9 @@ void main() {
),
);
await tester.pumpWidget(_buildApp(const CustomerPage()));
await tester.pumpWidget(
_buildApp(CustomerPage(routeUri: Uri(path: '/masters/customers'))),
);
await tester.pumpAndSettle();
await tester.tap(find.text('신규 등록'));
@@ -181,7 +187,9 @@ void main() {
);
});
await tester.pumpWidget(_buildApp(const CustomerPage()));
await tester.pumpWidget(
_buildApp(CustomerPage(routeUri: Uri(path: '/masters/customers'))),
);
await tester.pumpAndSettle();
await tester.tap(find.text('신규 등록'));