mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-27 02:04:22 +01:00
- Updated package.json to include new E2E scripts for execution and snapshot capturing. - Added new capture cases for the "new-project-modal" and "start-new-chat" functionalities in the E2E tests. - Increased wait times in session detail captures to ensure elements are fully loaded before interactions. - Introduced new shell scripts for starting the server and capturing snapshots, improving the E2E testing workflow. - Updated NewChatModal and SessionsTab components to include data-testid attributes for better test targeting.
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import { defineCapture } from "../utils/defineCapture";
|
|
|
|
export const projectsCapture = defineCapture({
|
|
href: "/projects",
|
|
cases: [
|
|
{
|
|
name: "new-project-modal",
|
|
setup: async (page) => {
|
|
const newProjectButton = page.locator(
|
|
'[data-testid="new-project-button"]',
|
|
);
|
|
await newProjectButton.click();
|
|
await page.waitForTimeout(1000);
|
|
},
|
|
},
|
|
],
|
|
});
|