결재 및 마스터 모듈을 v4 API 계약에 맞게 조정
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user