Merge branch 'foss42:main' into add-request-cancellation

This commit is contained in:
Sasank Tumpati
2024-12-12 13:15:16 +05:30
committed by GitHub
48 changed files with 572 additions and 407 deletions

View File

@ -180,6 +180,7 @@ RequestModel testRequestModel = RequestModel(
// JSON
Map<String, dynamic> requestModelJson = {
'id': '1',
'apiType': 'rest',
'name': '',
'description': '',
'httpRequestModel': httpRequestModelPost10Json,

View File

@ -3,7 +3,6 @@
import 'package:apidash/main.dart';
import 'package:apidash/app.dart';
import 'package:apidash/common/utils.dart';
import 'package:apidash/screens/screens.dart';
void main() {}

View File

@ -1,30 +0,0 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:apidash/widgets/checkbox.dart';
void main() {
testWidgets('Testing for Checkbox', (tester) async {
dynamic changedValue;
await tester.pumpWidget(
MaterialApp(
title: 'Checkbox Widget',
home: Scaffold(
body: CheckBox(
keyId: "1",
value: false,
onChanged: (value) {
changedValue = value;
},
),
),
),
);
expect(find.byKey(const Key("1")), findsOneWidget);
var box = find.byKey(const Key("1"));
await tester.tap(box);
await tester.pump();
await tester.pumpAndSettle();
expect(changedValue, true);
});
}