Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cc53fb07f | ||
|
|
c1f7ffb5b4 | ||
|
|
6816081644 | ||
|
|
433004598d | ||
|
|
02d8355a83 | ||
|
|
89010b2425 | ||
|
|
0ff1d23e4a | ||
|
|
fd29865e7a | ||
|
|
42564b537f | ||
|
|
d5fdbcc822 | ||
|
|
80a5764080 | ||
|
|
9e0f25b24f | ||
|
|
33201e00f3 | ||
|
|
c051b254dc | ||
|
|
9c74118ad2 | ||
|
|
b750fe9332 |
No files matched your search
@@ -38,3 +38,9 @@ E2E tests require an authenticated user to access core application features. We
|
|||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> If you encounter flaky tests or `ECONNREFUSED` errors during Playwright runs, check if the local Next.js dev server or the Docker engine stack is competing for ports (e.g., port 5432 or 3000). Ensure `pnpm run dev:backends` is running and stable before launching the test suite.
|
> If you encounter flaky tests or `ECONNREFUSED` errors during Playwright runs, check if the local Next.js dev server or the Docker engine stack is competing for ports (e.g., port 5432 or 3000). Ensure `pnpm run dev:backends` is running and stable before launching the test suite.
|
||||||
|
|
||||||
|
## 6. Execution Environment & Tooling Limitations
|
||||||
|
The development environment operates on **Windows PowerShell**. Agents MUST adhere to the following strict execution rules when running commands or interacting with the testing infrastructure:
|
||||||
|
- **No Double Ampersands (`&&`)**: Standard Windows PowerShell (prior to v7) does not support the `&&` operator. Use the semicolon (`;`) to chain commands, or rely on `pnpm` package.json scripts which manage cross-platform execution properly.
|
||||||
|
- **Avoid Non-existent Database CLI Commands**: Do not attempt to use raw `pg` or `psql` commands unless explicitly verified to exist in the path. Instead, use Prisma (`npx prisma studio`, `npx prisma migrate`) or Docker executions (`docker exec -it wwv-db psql ...`) for database interactions.
|
||||||
|
- **Creating Test Plugins**: You will repeatedly need to create mock test plugins for verifying different platform features (e.g. bottom-panel resizing, new UI widgets). When doing so, you MUST review this `e2e-testing.md` file to ensure compliance with the `PluginManager` strict interface rules (implementing `getPollingInterval`, `fetch`, and `renderEntity`).
|
||||||
+3
-3
@@ -35,10 +35,10 @@ const config = [
|
|||||||
|
|
||||||
// Pre-existing — flagged in the original code review (#96):
|
// Pre-existing — flagged in the original code review (#96):
|
||||||
"@typescript-eslint/no-explicit-any": "warn",
|
"@typescript-eslint/no-explicit-any": "warn",
|
||||||
"no-console": "warn",
|
"no-console": "off",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// React 19 hook-purity rules from eslint-plugin-react-hooks 7+:
|
||||||
|
// (These were previously hallucinated or require extra plugins)
|
||||||
// Misc one-offs across the codebase:
|
// Misc one-offs across the codebase:
|
||||||
"@typescript-eslint/ban-ts-comment": "warn",
|
"@typescript-eslint/ban-ts-comment": "warn",
|
||||||
"@next/next/no-assign-module-variable": "warn",
|
"@next/next/no-assign-module-variable": "warn",
|
||||||
|
|||||||
@@ -93,6 +93,4 @@ const nextConfig: NextConfig = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
import { withSentryConfig } from "@sentry/nextjs";
|
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "worldwideview",
|
"name": "worldwideview",
|
||||||
"version": "2.15.10",
|
"version": "2.15.15",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "[email protected]",
|
"packageManager": "[email protected]",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
"stripe": "^22.1.1",
|
"stripe": "^22.1.1",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"undici": "^8.2.0",
|
"undici": "^8.2.0",
|
||||||
"ws": "^8.14.2",
|
"ws": "^8.20.1",
|
||||||
"zod": "^4.4.3",
|
"zod": "^4.4.3",
|
||||||
"zustand": "^5.0.13"
|
"zustand": "^5.0.13"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable no-console */
|
||||||
import { Command } from 'commander';
|
import { Command } from 'commander';
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
@@ -66,7 +67,7 @@ export const publishCommand = new Command('publish')
|
|||||||
try {
|
try {
|
||||||
const whoami = execSync('npm whoami', { stdio: 'pipe' }).toString().trim();
|
const whoami = execSync('npm whoami', { stdio: 'pipe' }).toString().trim();
|
||||||
targetOrg = whoami;
|
targetOrg = whoami;
|
||||||
} catch (e) {
|
} catch (_e) {
|
||||||
// Not logged in or errored, ignore
|
// Not logged in or errored, ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+962
-5
File diff suppressed because it is too large.
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
@@ -179,6 +179,7 @@ export function BottomPanelManager() {
|
|||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
className="bottom-panel-resize-handle"
|
className="bottom-panel-resize-handle"
|
||||||
|
data-testid="bottom-panel-resize-handle"
|
||||||
ref={resizeRef}
|
ref={resizeRef}
|
||||||
onMouseDown={() => setIsDragging(true)}
|
onMouseDown={() => setIsDragging(true)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -74,4 +74,60 @@ test.describe('Bottom Panel System', () => {
|
|||||||
// Verify the content is no longer visible
|
// Verify the content is no longer visible
|
||||||
await expect(mockContent).not.toBeVisible();
|
await expect(mockContent).not.toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('verifies the bottom panel can be resized via the drag handle', async ({ page }) => {
|
||||||
|
const panelTab = page.locator('.dock-btn', { hasText: 'E2E Bottom Panel Mock' });
|
||||||
|
await expect(panelTab).toBeVisible();
|
||||||
|
await panelTab.click();
|
||||||
|
|
||||||
|
const bottomPanel = page.locator('.bottom-panel.open');
|
||||||
|
await expect(bottomPanel).toBeVisible();
|
||||||
|
|
||||||
|
// Get initial height
|
||||||
|
const initialBox = await bottomPanel.boundingBox();
|
||||||
|
expect(initialBox).not.toBeNull();
|
||||||
|
|
||||||
|
// Find the drag handle
|
||||||
|
const dragHandle = page.locator('[data-testid="bottom-panel-resize-handle"]');
|
||||||
|
await expect(dragHandle).toBeVisible();
|
||||||
|
|
||||||
|
const handleBox = await dragHandle.boundingBox();
|
||||||
|
expect(handleBox).not.toBeNull();
|
||||||
|
|
||||||
|
// Perform drag UP
|
||||||
|
await page.mouse.move(handleBox!.x + handleBox!.width / 2, handleBox!.y + handleBox!.height / 2);
|
||||||
|
await page.mouse.down();
|
||||||
|
await page.waitForTimeout(100); // allow React to process mousedown and attach mousemove listener
|
||||||
|
|
||||||
|
// Drag up by 100 pixels with steps to simulate smooth motion and trigger isDragging styles
|
||||||
|
await page.mouse.move(handleBox!.x + handleBox!.width / 2, handleBox!.y - 100, { steps: 10 });
|
||||||
|
await page.waitForTimeout(100); // allow resize state to update
|
||||||
|
await page.mouse.up();
|
||||||
|
await page.waitForTimeout(400); // wait for CSS transition to settle since opacity/height transitions apply
|
||||||
|
|
||||||
|
// Check new height
|
||||||
|
const finalBox = await bottomPanel.boundingBox();
|
||||||
|
expect(finalBox).not.toBeNull();
|
||||||
|
expect(finalBox!.height).toBeGreaterThan(initialBox!.height + 50);
|
||||||
|
|
||||||
|
// Get updated handle position for second drag
|
||||||
|
const newHandleBox = await dragHandle.boundingBox();
|
||||||
|
expect(newHandleBox).not.toBeNull();
|
||||||
|
|
||||||
|
// Drag DOWN
|
||||||
|
await page.mouse.move(newHandleBox!.x + newHandleBox!.width / 2, newHandleBox!.y + newHandleBox!.height / 2);
|
||||||
|
await page.mouse.down();
|
||||||
|
await page.waitForTimeout(100);
|
||||||
|
|
||||||
|
await page.mouse.move(newHandleBox!.x + newHandleBox!.width / 2, newHandleBox!.y + 100, { steps: 10 });
|
||||||
|
await page.waitForTimeout(100);
|
||||||
|
await page.mouse.up();
|
||||||
|
await page.waitForTimeout(400);
|
||||||
|
|
||||||
|
// Check height decreased
|
||||||
|
const shrunkBox = await bottomPanel.boundingBox();
|
||||||
|
expect(shrunkBox).not.toBeNull();
|
||||||
|
expect(shrunkBox!.height).toBeLessThan(finalBox!.height - 50);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Reference in new issue
Block a user