feat(editor): the simulation opens sheets, not windows in the window
A tap on a device in the simulation now only chooses it; its three-dot button (or a long press) opens what Java's click opened: the desktop, and newly a switch's SAT table and a home router's NAT table, beside each card's data exchange. The desktop, the tables and the data exchange are no windows in the window any more but the simulation's sheet (SimulationSheet), after the dashboard's AppSheet: below the toolbar to the bottom, a head with icon, title, who else has it open, see-through and close. One at a time — it covers the surface. It stays over a return to the design with the program open on a desktop; a sheet whose device was removed closes. See-through fades the body (0.55) and keeps the head; the choice is kept in the browser. Java opens these as movable windows, several at once, with a click; named in CHANGES.md. Tests open through the menu (showFromMenu, showDesktop in editorPage.ts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import { chromium, type Browser, type Page } from '@playwright/test';
|
||||
import { nodeFiles, readProject } from '@mdg-filius/doc';
|
||||
import { drag, onDevice } from '../../packages/editor/browser/editorPage.js';
|
||||
import { drag, onDevice, showDesktop } from '../../packages/editor/browser/editorPage.js';
|
||||
import { cleanUp, joinDoc, seededProject, signIn, signInAddress } from './lib.js';
|
||||
|
||||
const results: [string, boolean, string][] = [];
|
||||
@@ -43,9 +43,7 @@ async function person(browser: Browser, project: string, name: string, user: str
|
||||
}
|
||||
|
||||
async function commandLine(page: Page, id: string) {
|
||||
const at = await onDevice(page, id);
|
||||
await page.mouse.click(at.x, at.y);
|
||||
const desktop = page.locator(`section[data-desktop="${id}"]`);
|
||||
const desktop = await showDesktop(page, id);
|
||||
await desktop.locator('[data-program="commandPrompt"]').click();
|
||||
const window = desktop.locator('[data-program-window="commandPrompt"]');
|
||||
return { input: window.locator('input[name="terminalInput"]'), text: window.locator('.terminal-text') };
|
||||
|
||||
Reference in New Issue
Block a user