Separate chat selectors from Files and More actions
This commit is contained in:
@@ -179,7 +179,10 @@ void main() {
|
||||
await tester.enterText(_input('a'), 'Keep this draft');
|
||||
final originalWidth = tester.getSize(_thread('a')).width;
|
||||
Future<void> choose(String label) async {
|
||||
await tester.tap(find.byTooltip('Chat list layout').first);
|
||||
await tester.tap(find.byTooltip('More actions').hitTestable().first);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Chat list layout'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text(label));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -259,10 +262,12 @@ void main() {
|
||||
.hitTestable();
|
||||
if (closePane.evaluate().isEmpty) {
|
||||
await tester.tap(
|
||||
find.descendant(
|
||||
of: _thread('c'),
|
||||
matching: find.byTooltip('More actions'),
|
||||
),
|
||||
find
|
||||
.descendant(
|
||||
of: _thread('c'),
|
||||
matching: find.byTooltip('More actions'),
|
||||
)
|
||||
.hitTestable(),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('Close pane'));
|
||||
|
||||
Reference in New Issue
Block a user