mirror of
https://github.com/foss42/apidash.git
synced 2025-06-24 08:54:47 +08:00
Merge branch 'foss42:main' into add-request-cancellation
This commit is contained in:
@ -180,6 +180,7 @@ RequestModel testRequestModel = RequestModel(
|
||||
// JSON
|
||||
Map<String, dynamic> requestModelJson = {
|
||||
'id': '1',
|
||||
'apiType': 'rest',
|
||||
'name': '',
|
||||
'description': '',
|
||||
'httpRequestModel': httpRequestModelPost10Json,
|
||||
|
@ -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() {}
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user