selectSpace method
- String spaceId,
- dynamic key
Implementation
Future<void> selectSpace(String spaceId, Key key) async {
// open the drawer
final selectSpacesKey = find.byKey(key);
await tester.ensureVisible(selectSpacesKey);
await selectSpacesKey.tap();
// select the space and close the drawer
final select = find.byKey(Key('select-space-$spaceId'));
await tester.ensureVisible(select);
await select.tap();
}