Migrate to API Dash APIs

This commit is contained in:
Ashita Prasad
2024-03-08 10:30:33 +05:30
parent 9841f488ec
commit 96be5453f8
23 changed files with 218 additions and 217 deletions

View File

@@ -17,7 +17,7 @@ void main() {
SidebarRequestCard(
id: '23',
selectedId: '2',
url: 'https://api.foss42.com',
url: 'https://api.apidash.dev',
method: HTTPVerb.get,
onTap: () {
changedValue = 'Single Tapped';
@@ -34,11 +34,11 @@ void main() {
expect(find.byType(InkWell), findsOneWidget);
expect(find.text('api.foss42.com'), findsOneWidget);
expect(find.widgetWithText(SizedBox, 'api.foss42.com'), findsOneWidget);
expect(find.widgetWithText(Card, 'api.foss42.com'), findsOneWidget);
expect(find.text('api.apidash.dev'), findsOneWidget);
expect(find.widgetWithText(SizedBox, 'api.apidash.dev'), findsOneWidget);
expect(find.widgetWithText(Card, 'api.apidash.dev'), findsOneWidget);
await tester.pumpAndSettle();
var tappable = find.widgetWithText(Card, 'api.foss42.com');
var tappable = find.widgetWithText(Card, 'api.apidash.dev');
await tester.tap(tappable);
await tester.pumpAndSettle(const Duration(seconds: 2));
expect(changedValue, 'Single Tapped');
@@ -63,7 +63,7 @@ void main() {
id: '2',
selectedId: '2',
editRequestId: '2',
url: 'https://api.foss42.com',
url: 'https://api.apidash.dev',
method: HTTPVerb.get,
onTapOutsideNameEditor: () {
changedValue = 'Tapped Outside';