Skip to content

Commit

Permalink
add helper to select drive
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Nov 7, 2024
1 parent febba1f commit cc2410d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions integration_test/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,11 @@ Future<void> runPreConditionUserLoggedIn(WidgetTester tester) async {
await testLoginSuccess(tester);
await I.wait(5000);
}

ButtonTestWithKey publicDriveButton(String driveName) {
return ButtonTestWithKey('public_drives_$driveName');
}

ButtonTestWithKey privateDriveButton(String driveName) {
return ButtonTestWithKey('private_drives_$driveName');
}
2 changes: 1 addition & 1 deletion lib/components/side_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ class _Accordion extends StatelessWidget {
},
isSelected: state.selectedDriveId == d.id,
isHidden: d.isHidden,
key: Key('user_drives_${d.name}'),
key: Key('public_drives_${d.name}'),
),
)
.toList(),
Expand Down

0 comments on commit cc2410d

Please sign in to comment.