결재 단계 UI 보완 및 분석 통과
This commit is contained in:
@@ -65,7 +65,7 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
ApprovalTemplate _template({bool isActive = true}) {
|
||||
ApprovalTemplate buildTemplate({bool isActive = true}) {
|
||||
return ApprovalTemplate(
|
||||
id: 10,
|
||||
code: 'AP_INBOUND',
|
||||
@@ -101,7 +101,7 @@ void main() {
|
||||
),
|
||||
).thenAnswer(
|
||||
(_) async => PaginatedResult<ApprovalTemplate>(
|
||||
items: [_template()],
|
||||
items: [buildTemplate()],
|
||||
page: 1,
|
||||
pageSize: 20,
|
||||
total: 1,
|
||||
@@ -140,7 +140,7 @@ void main() {
|
||||
|
||||
when(
|
||||
() => repository.create(any(), steps: any(named: 'steps')),
|
||||
).thenAnswer((_) async => _template());
|
||||
).thenAnswer((_) async => buildTemplate());
|
||||
|
||||
await tester.pumpWidget(_buildApp(const ApprovalTemplatePage()));
|
||||
await tester.pump();
|
||||
@@ -192,7 +192,7 @@ void main() {
|
||||
});
|
||||
|
||||
testWidgets('수정 플로우에서 fetchDetail 후 update를 호출한다', (tester) async {
|
||||
final activeTemplate = _template();
|
||||
final activeTemplate = buildTemplate();
|
||||
|
||||
when(
|
||||
() => repository.list(
|
||||
|
||||
Reference in New Issue
Block a user