Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/features/extensions/extension_table_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class ExtensionTableToolbar extends material.StatelessWidget {
if (onCopyFormat != null) ...[
const Gap(4),
ExportMenuButton(
label: 'Copy ▾',
label: 'Copy',
icon: material.Icons.copy_rounded,
isSave: false,
onSelected: onCopyFormat!,
Expand All @@ -158,7 +158,7 @@ class ExtensionTableToolbar extends material.StatelessWidget {
if (onSaveFormat != null) ...[
const Gap(4),
ExportMenuButton(
label: 'Export ▾',
label: 'Export',
icon: material.Icons.file_download_outlined,
isSave: true,
onSelected: onSaveFormat!,
Expand Down
4 changes: 2 additions & 2 deletions lib/features/workspace/results_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,14 @@ class _ResultsTabState extends material.State<ResultsTab> {
const Gap(8),

ExportMenuButton(
label: 'Export ▾',
label: 'Export',
icon: material.Icons.copy_rounded,
isSave: false,
onSelected: (format) => unawaited(_copyAs(format)),
),
const Gap(6),
ExportMenuButton(
label: 'Save File ▾',
label: 'Save File',
icon: material.Icons.download_rounded,
isSave: true,
onSelected: (format) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void main() {
}

Future<void> copyAs(WidgetTester tester, String menuLabel) async {
await tester.tap(find.text('Export ▾'));
await tester.tap(find.text('Export'));
await tester.pump();
await tester.pump(const Duration(milliseconds: 500));
await tester.tap(find.text(menuLabel));
Expand Down
6 changes: 3 additions & 3 deletions test/features/workspace/results_tab_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ void main() {
buffer.dispose();
});

testWidgets('ResultsTab renders Export ▾ button with file export options', (tester) async {
testWidgets('ResultsTab renders Export button with file export options', (tester) async {
final rows = [
['1', 'Alice'],
];
Expand All @@ -1143,8 +1143,8 @@ void main() {
);
await tester.pumpAndSettle();

expect(find.text('Export ▾'), findsOneWidget);
expect(find.text('Save File ▾'), findsOneWidget);
expect(find.text('Export'), findsOneWidget);
expect(find.text('Save File'), findsOneWidget);
});

testWidgets('ResultsTab toggles filter bar and closes it when close button or Escape is triggered', (tester) async {
Expand Down
Loading