feat(session-options): show the session's working folder with a copy button

This commit is contained in:
Devvyn committed 2026-10-10 13:50:05 +08:00
1 parent 3d59e59e37
commit 0fced6ea97
4 files changed
+39

No files matched your search

+10
View File
@@ -103,4 +103,14 @@ describe('Session Options modal structure', () => {
);
expect(styles).not.toMatch(/@media \(min-width: 680px\)[\s\S]{0,1200}#sessionOptionsModal #context-tab/);
});
it('shows the session working folder with a copy button', () => {
const modal = optionsModal();
expect(modal).toContain('id="modalSessionPath"');
expect(modal).toContain('app.copySessionPath()');
const open = methodBody('openSessionOptions(sessionId)');
expect(open).toContain("getElementById('modalSessionPath')");
expect(open).toContain('session.workingDir');
expect(methodBody('async copySessionPath()')).toContain('_copyText(session.workingDir)');
});
});