mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-13 12:17:34 +00:00
feat: open compose editor in edit mode with one click (#1592)
* feat: open compose editor in edit mode with one click Remove the desktop double edit gate so Anatomy "Edit compose" and empty-stack create land in an immediately editable workspace. Close discards both compose and env buffers; deferred loads keep startInComposeEdit through unsaved confirm. * docs: align compose editor close behavior and Edit compose labels Update stack-management and editor docs for one-click edit mode. Close discards unsaved compose/env edits. Anatomy shortcuts use Edit compose. * fix(e2e): update routing test to use anatomy-edit-compose-btn test id The compose editor env tab routing test was written against the old 'edit' button name. The single-compose-edit-gate branch renamed that button to 'Edit compose' with test id 'anatomy-edit-compose-btn'. Update the selector to match.
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ test.describe('URL routing', () => {
|
||||
await expect(page).toHaveURL(new RegExp(`/nodes/local/stacks/`));
|
||||
await expect(page).not.toHaveURL(/\/compose$/);
|
||||
|
||||
await page.getByRole('button', { name: 'edit', exact: true }).click();
|
||||
await page.getByTestId('anatomy-edit-compose-btn').click();
|
||||
await expect(page).toHaveURL(/\/compose/);
|
||||
const envTab = page.getByRole('tab', { name: '.env' });
|
||||
test.skip(!(await envTab.isEnabled()), 'Stack has no .env file');
|
||||
|
||||
Reference in New Issue
Block a user