merge main into install-app
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pipelines_app/features/pipelines/screen.dart';
|
||||
@@ -146,4 +147,22 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Beta deploy'), findsOneWidget);
|
||||
});
|
||||
|
||||
for (final cupertino in [false, true]) {
|
||||
testWidgets('Schedules opens from the bar (cupertino: $cupertino)', (
|
||||
tester,
|
||||
) async {
|
||||
var opened = 0;
|
||||
final screen = PipelinesScreen(
|
||||
gateway: gatewayFor(PipelineFixture()),
|
||||
onOpenSchedules: () => opened++,
|
||||
);
|
||||
await tester.pumpWidget(
|
||||
cupertino ? CupertinoApp(home: screen) : MaterialApp(home: screen),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.byKey(const Key('pipelines-open-schedules')));
|
||||
expect(opened, 1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user