mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2026-01-06 07:04:21 +01:00
refactor: firstCommand
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { TaskExecutor } from "../utils/TaskExecutor";
|
||||
import { errorPagesCapture } from "./error-pages";
|
||||
import { homeCapture } from "./home";
|
||||
import { projectDetailCapture } from "./project-detail";
|
||||
import { projectsCapture } from "./projects";
|
||||
import { sessionDetailCapture } from "./session-detail";
|
||||
|
||||
@@ -17,7 +16,6 @@ const tasks = [
|
||||
...homeCapture.tasks,
|
||||
...errorPagesCapture.tasks,
|
||||
...projectsCapture.tasks,
|
||||
...projectDetailCapture.tasks,
|
||||
...sessionDetailCapture.tasks,
|
||||
];
|
||||
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import { projectIds } from "../config";
|
||||
import { defineCapture } from "../utils/defineCapture";
|
||||
|
||||
export const projectDetailCapture = defineCapture({
|
||||
href: `projects/${projectIds.sampleProject}`,
|
||||
cases: [
|
||||
{
|
||||
name: "filters-expanded",
|
||||
setup: async (page) => {
|
||||
const filterToggle = page.locator(
|
||||
'[data-testid="expand-filter-settings-button"]',
|
||||
);
|
||||
if (await filterToggle.isVisible()) {
|
||||
await filterToggle.click();
|
||||
await page.waitForTimeout(300);
|
||||
} else {
|
||||
throw new Error("Filter settings button not found");
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "new-chat-modal",
|
||||
setup: async (page) => {
|
||||
const newChatButton = page.locator('[data-testid="new-chat"]');
|
||||
if (await newChatButton.isVisible()) {
|
||||
await newChatButton.click();
|
||||
await page.waitForTimeout(300);
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user