mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-26 15:26:17 +00:00
fix(app): leave tabs that open a deleted page by title, so it is not recreated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3d754a83e6
commit
a6d566ff6f
4 files changed
+22
-4
No files matched your search
@@ -146,6 +146,15 @@ void main() {
|
||||
app.activateTab(0);
|
||||
expect((app.route as PageTarget).id, beta.id);
|
||||
});
|
||||
|
||||
test('a page opened by title is left too, so it is not recreated', () {
|
||||
final b = demo();
|
||||
final alpha = byTitle(b, 'Alpha');
|
||||
final app = AppState(b);
|
||||
app.go(const PageTarget(title: 'alpha'));
|
||||
app.pagesDeleted([alpha.id], titles: ['Alpha']);
|
||||
expect(app.route, isA<JournalsRoute>());
|
||||
});
|
||||
});
|
||||
|
||||
group('tabs UI', () {
|
||||
|
||||
Reference in new issue
Block a user