-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from fga-eps-mds/fix#64/ajusta-refreshIndicator
[FIX]: Resolve retorno refresh indicator(fga-eps-mds/2024.2-ARANDU-DOC#64)
- Loading branch information
Showing
12 changed files
with
657 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:aranduapp/ui/shared/erro_screen.dart'; | ||
|
||
void main() { | ||
testWidgets('Testa ErrorScreen', (WidgetTester tester) async { | ||
const errorMessage = 'Esta é uma mensagem de erro de teste.'; | ||
|
||
await tester.pumpWidget( | ||
const MaterialApp( | ||
home: ErrorScreen(message: errorMessage), | ||
), | ||
); | ||
|
||
expect(find.byIcon(Icons.error_sharp), findsOneWidget); | ||
|
||
expect(find.text('Algo deu errado...'), findsOneWidget); | ||
|
||
expect(find.text(errorMessage), findsOneWidget); | ||
|
||
final iconFinder = find.byIcon(Icons.error_sharp); | ||
final Icon iconWidget = tester.widget(iconFinder); | ||
expect(iconWidget.color, isNotNull); | ||
|
||
final textFinder1 = find.text('Algo deu errado...'); | ||
final Text textWidget1 = tester.widget(textFinder1); | ||
expect(textWidget1.style?.color, isNotNull); | ||
|
||
final textFinder2 = find.text(errorMessage); | ||
final Text textWidget2 = tester.widget(textFinder2); | ||
expect(textWidget2.style?.color, isNotNull); | ||
|
||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.