mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-20 09:09:35 +02:00
Merge pull request #593: feat(session-options): show the session's working folder with a copy button
This commit is contained in:
commit
0ff9b798af
4 files changed
+39
No files matched your search
@@ -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)');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user