mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-19 14:24:20 +01:00
fix vrt
This commit is contained in:
@@ -12,7 +12,10 @@ export const sessionDetailCapture = defineCapture({
|
|||||||
);
|
);
|
||||||
if (await menuButton.isVisible()) {
|
if (await menuButton.isVisible()) {
|
||||||
await menuButton.click();
|
await menuButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector(
|
||||||
|
'[data-testid="sessions-tab-button-mobile"]',
|
||||||
|
{ state: "visible", timeout: 1000 },
|
||||||
|
);
|
||||||
|
|
||||||
const sessionsTabButton = page.locator(
|
const sessionsTabButton = page.locator(
|
||||||
'[data-testid="sessions-tab-button-mobile"]',
|
'[data-testid="sessions-tab-button-mobile"]',
|
||||||
@@ -41,14 +44,16 @@ export const sessionDetailCapture = defineCapture({
|
|||||||
);
|
);
|
||||||
if (await menuButton.isVisible()) {
|
if (await menuButton.isVisible()) {
|
||||||
await menuButton.click();
|
await menuButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector(
|
||||||
|
'[data-testid="settings-tab-button-mobile"]',
|
||||||
|
);
|
||||||
|
|
||||||
const settingsTabButton = page.locator(
|
const settingsTabButton = page.locator(
|
||||||
'[data-testid="settings-tab-button-mobile"]',
|
'[data-testid="settings-tab-button-mobile"]',
|
||||||
);
|
);
|
||||||
if (await settingsTabButton.isVisible()) {
|
if (await settingsTabButton.isVisible()) {
|
||||||
await settingsTabButton.click();
|
await settingsTabButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const settingsTabButton = page.locator(
|
const settingsTabButton = page.locator(
|
||||||
@@ -56,7 +61,7 @@ export const sessionDetailCapture = defineCapture({
|
|||||||
);
|
);
|
||||||
if (await settingsTabButton.isVisible()) {
|
if (await settingsTabButton.isVisible()) {
|
||||||
await settingsTabButton.click();
|
await settingsTabButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -70,19 +75,21 @@ export const sessionDetailCapture = defineCapture({
|
|||||||
);
|
);
|
||||||
if (await menuButton.isVisible()) {
|
if (await menuButton.isVisible()) {
|
||||||
await menuButton.click();
|
await menuButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector(
|
||||||
|
'[data-testid="start-new-chat-button-mobile"]',
|
||||||
|
);
|
||||||
|
|
||||||
const startNewChatButton = page.locator(
|
const startNewChatButton = page.locator(
|
||||||
'[data-testid="start-new-chat-button-mobile"]',
|
'[data-testid="start-new-chat-button-mobile"]',
|
||||||
);
|
);
|
||||||
await startNewChatButton.click();
|
await startNewChatButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
} else {
|
} else {
|
||||||
const startNewChatButton = page.locator(
|
const startNewChatButton = page.locator(
|
||||||
'[data-testid="start-new-chat-button"]',
|
'[data-testid="start-new-chat-button"]',
|
||||||
);
|
);
|
||||||
await startNewChatButton.click();
|
await startNewChatButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -95,7 +102,7 @@ export const sessionDetailCapture = defineCapture({
|
|||||||
.first();
|
.first();
|
||||||
if (await sidechainTaskButton.isVisible()) {
|
if (await sidechainTaskButton.isVisible()) {
|
||||||
await sidechainTaskButton.click();
|
await sidechainTaskButton.click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForSelector('[data-testid="sidechain-task-modal"]');
|
||||||
|
|
||||||
// モーダルが開いたことを確認
|
// モーダルが開いたことを確認
|
||||||
const modal = page.locator('[data-testid="sidechain-task-modal"]');
|
const modal = page.locator('[data-testid="sidechain-task-modal"]');
|
||||||
|
|||||||
@@ -34,13 +34,13 @@ export const defineCapture = (options: {
|
|||||||
await page.goto(href);
|
await page.goto(href);
|
||||||
|
|
||||||
await page.waitForLoadState("domcontentloaded");
|
await page.waitForLoadState("domcontentloaded");
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
|
|
||||||
if (testCase) {
|
if (testCase) {
|
||||||
await testCase.setup(page);
|
await testCase.setup(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(2000);
|
||||||
|
|
||||||
const picturePath = testCase
|
const picturePath = testCase
|
||||||
? resolve(
|
? resolve(
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ export const AssistantConversationContent: FC<{
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-auto py-1.5 px-3 text-xs hover:bg-blue-100 dark:hover:bg-blue-900/30 rounded-none flex items-center gap-1"
|
className="h-auto py-1.5 px-3 text-xs hover:bg-blue-100 dark:hover:bg-blue-900/30 rounded-none flex items-center gap-1"
|
||||||
|
data-testid="sidechain-task-button"
|
||||||
>
|
>
|
||||||
<Eye className="h-3 w-3" />
|
<Eye className="h-3 w-3" />
|
||||||
<Trans
|
<Trans
|
||||||
|
|||||||
Reference in New Issue
Block a user