Compare commits

...
Author SHA1 Message Date
wyt 9bb098d175 fix: restore sidebar section toggles 2026-08-25 18:02:21 +08:00
wyt ab7cb222f3 v2026.8.25 2026-08-25 16:26:09 +08:00
4 changed files with 30 additions and 3 deletions

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "orkas",
"version": "2026.8.11",
"version": "2026.8.25",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "orkas",
"version": "2026.8.11",
"version": "2026.8.25",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "orkas",
"version": "2026.8.11",
"version": "2026.8.25",
"private": true,
"description": "Orkas desktop — Electron + Node one-piece app",
"main": "bootstrap.cjs",
+1
View File
@@ -1691,6 +1691,7 @@
};
</script>
<script src="./modules/math.js"></script>
<script src="./modules/sidebar-sections.js"></script>
<script src="./modules/sidebar-resize.js"></script>
</body>
</html>
+26
View File
@@ -0,0 +1,26 @@
import { expect, test } from './fixtures/orkas';
test.describe('sidebar sections', () => {
test('collapses and expands Projects and Tasks from their title controls', async ({ orkas }) => {
if (!orkas.page) throw new Error('Orkas renderer is unavailable');
const page = orkas.page;
const projectsToggle = page.locator('#projects-section-toggle');
const tasksToggle = page.locator('#tasks-section-toggle');
await expect(projectsToggle).toHaveAttribute('aria-expanded', 'true');
await expect(tasksToggle).toHaveAttribute('aria-expanded', 'true');
await projectsToggle.locator('.sidebar-section-title').click();
await expect(projectsToggle).toHaveAttribute('aria-expanded', 'false');
await expect(page.locator('#projects-list')).toBeHidden();
await tasksToggle.locator('.sidebar-section-title').click();
await expect(tasksToggle).toHaveAttribute('aria-expanded', 'false');
await expect(page.locator('#conversation-list')).toBeHidden();
await projectsToggle.locator('.sidebar-section-title').click();
await tasksToggle.locator('.sidebar-section-title').click();
await expect(projectsToggle).toHaveAttribute('aria-expanded', 'true');
await expect(tasksToggle).toHaveAttribute('aria-expanded', 'true');
});
});