Skip to content

Commit

Permalink
Expand the first test execution run initially
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Oct 25, 2024
1 parent bf4e12f commit 8c9b090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/lib/ui/artefact_page/environment_expandable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class EnvironmentExpandable extends StatelessWidget {
),
...artefactEnvironment.runsDescending.mapIndexed(
(i, te) => TestExecutionExpandable(
initiallyExpanded: i == 0,
testExecution: te,
runNumber: artefactEnvironment.runsDescending.length - i,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ class TestExecutionExpandable extends ConsumerWidget {
super.key,
required this.testExecution,
required this.runNumber,
this.initiallyExpanded = false,
});

final TestExecution testExecution;
final int runNumber;
final bool initiallyExpanded;

@override
Widget build(BuildContext context, WidgetRef ref) {
return Expandable(
initiallyExpanded: initiallyExpanded,
title: _TestExecutionTileTitle(
testExecution: testExecution,
runNumber: runNumber,
Expand Down

0 comments on commit 8c9b090

Please sign in to comment.