Preview quick switch styles with the real local workspace
This commit is contained in:
@@ -31,8 +31,14 @@ void main() {
|
||||
);
|
||||
await tester.pumpWidget(
|
||||
cupertino
|
||||
? CupertinoApp(home: CupertinoPageScaffold(child: child))
|
||||
: MaterialApp(home: Scaffold(body: child)),
|
||||
? CupertinoApp(
|
||||
home: CupertinoPageScaffold(
|
||||
child: SingleChildScrollView(child: child),
|
||||
),
|
||||
)
|
||||
: MaterialApp(
|
||||
home: Scaffold(body: SingleChildScrollView(child: child)),
|
||||
),
|
||||
);
|
||||
expect(find.text('Quick switch animation'), findsOneWidget);
|
||||
expect(
|
||||
@@ -41,7 +47,7 @@ void main() {
|
||||
);
|
||||
await tester.tap(find.text('Tape'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Card stack').last);
|
||||
await tester.tap(find.text('Card deck').last);
|
||||
await tester.pumpAndSettle();
|
||||
expect(controller.value, QuickSwitchAnimation.cardStack);
|
||||
expect(store.saved, 'cardStack');
|
||||
@@ -50,7 +56,7 @@ void main() {
|
||||
findsOneWidget,
|
||||
);
|
||||
store.success = false;
|
||||
await tester.tap(find.text('Card stack'));
|
||||
await tester.tap(find.text('Card deck'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Swap').last);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in New Issue
Block a user