Open the run's artifact from notifications
Phone and browser notifications that carry an artifact open it full screen in the artifact viewer, with an Open run action and the preview as expanded text; pipelines://artifact deep links route to the viewer.
This commit is contained in:
@@ -2,6 +2,13 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:pipelines_app/application/app_route.dart';
|
||||
|
||||
void main() {
|
||||
test('parses artifact deep links and preserves escaped path', () {
|
||||
final route = AppRoute.parse(
|
||||
'pipelines://artifact/42/3/reports%2Ffinal.md',
|
||||
);
|
||||
expect(route, AppRoute.artifact(42, 3, 'reports/final.md'));
|
||||
expect(route.path, '/artifact/42/3/reports%2Ffinal.md');
|
||||
});
|
||||
test('parses each destination, detail and stage pane', () {
|
||||
expect(AppRoute.parse('/pipelines'), AppRoute.pipelines);
|
||||
expect(AppRoute.parse('/pipelines/5'), AppRoute.pipeline(5));
|
||||
|
||||
Reference in New Issue
Block a user