결재 및 마스터 모듈을 v4 API 계약에 맞게 조정

This commit is contained in:
JiWoong Sul
2025-10-16 17:27:20 +09:00
parent d5c99627db
commit 9e2244f260
34 changed files with 1394 additions and 330 deletions

View File

@@ -72,7 +72,7 @@ void main() {
expect(query['q'], 'sup');
expect(query['is_partner'], true);
expect(query['is_general'], false);
expect(query['is_active'], true);
expect(query['active'], true);
});
test('fetchDetail은 include=zipcode 파라미터를 전달한다', () async {

View File

@@ -177,7 +177,7 @@ void main() {
await tester.tap(find.text('등록'));
await tester.pump();
expect(find.text('우편번호 검색으로 주소를 선택하세요.'), findsOneWidget);
expect(find.text('검색 버튼을 눌러 주소를 선택하세요.'), findsOneWidget);
});
testWidgets('신규 등록 성공 시 repository.create 호출', (tester) async {
@@ -224,6 +224,7 @@ void main() {
id: 2,
customerCode: capturedInput!.customerCode,
customerName: capturedInput!.customerName,
contactName: capturedInput!.contactName,
isPartner: capturedInput!.isPartner,
isGeneral: capturedInput!.isGeneral,
);
@@ -245,8 +246,9 @@ void main() {
await tester.enterText(editableTexts.at(0), 'C-100');
await tester.enterText(editableTexts.at(1), '신규 고객');
await tester.enterText(editableTexts.at(2), 'new@superport.com');
await tester.enterText(editableTexts.at(3), '02-0000-0000');
await tester.enterText(editableTexts.at(2), '홍길동');
await tester.enterText(editableTexts.at(3), 'new@superport.com');
await tester.enterText(editableTexts.at(4), '02-0000-0000');
// 유형 체크박스: 기본값 partner=false, general=true. partner on 추가
await tester.tap(find.text('파트너'));
@@ -257,6 +259,7 @@ void main() {
expect(capturedInput, isNotNull);
expect(capturedInput?.customerCode, 'C-100');
expect(capturedInput?.contactName, '홍길동');
expect(find.byType(Dialog), findsNothing);
expect(find.text('C-100'), findsOneWidget);
verify(() => repository.create(any())).called(1);

View File

@@ -78,7 +78,7 @@ void main() {
expect(query['include'], 'vendor,uom');
expect(query['vendor_id'], 10);
expect(query['uom_id'], 5);
expect(query['is_active'], false);
expect(query['active'], false);
expect(query['page'], 3);
expect(query['page_size'], 40);
expect(query['q'], 'gear');

View File

@@ -295,7 +295,7 @@ void main() {
await tester.tap(find.text('제조사를 선택하세요'));
await tester.pumpAndSettle();
await tester.tap(find.text('슈퍼벤더'));
await tester.tap(find.text('슈퍼벤더 (V-001)'));
await tester.pumpAndSettle();
await tester.tap(find.text('단위를 선택하세요'));