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:
@@ -104,7 +104,10 @@ test('builds FILIUS\' „zwei Rechnernetze“ by finger and pings across (the ac
|
||||
// The simulation; the command line installed on the first computer; a ping across the router.
|
||||
await page.getByRole('button', { name: 'Wechselt in den Aktionsmodus' }).tap();
|
||||
await expect(page.locator('svg.filius-canvas')).toHaveAttribute('data-mode', 'simulation');
|
||||
// A tap chooses the computer; its three-dot button opens its menu, „Desktop anzeigen“ its desktop as the sheet.
|
||||
await finger.tap(await onDevice(page, pcA));
|
||||
await page.getByRole('button', { name: 'Aktionen' }).tap();
|
||||
await page.getByRole('menuitem', { name: 'Desktop anzeigen' }).tap();
|
||||
const desktop = page.locator(`section[data-desktop="${pcA}"]`);
|
||||
await desktop.locator('[data-program="installation"]').tap();
|
||||
const installation = desktop.locator('[data-program-window="installation"]');
|
||||
|
||||
Reference in New Issue
Block a user