test(pi): hydrate packaged fork source before proof
This commit is contained in:
@@ -476,6 +476,14 @@ export async function runPackagedProductProof(options) {
|
||||
|| settledProxy?.proxy?.activeProviderRequests?.child !== 0) {
|
||||
throw new Error(`Packaged proxy source did not settle before fork: ${JSON.stringify(settledProxy?.proxy)}`);
|
||||
}
|
||||
await page.reload();
|
||||
await page.waitForLoadState('domcontentloaded');
|
||||
if (await page.getByTestId('ai-module-selection-page').count()) {
|
||||
await page.getByTestId('ai-module-option-programming').click();
|
||||
await page.getByTestId('main-layout').waitFor({ state: 'visible', timeout: 10_000 });
|
||||
}
|
||||
await page.evaluate(() => { window.location.hash = '/chat'; });
|
||||
await page.getByText('REAL_PARENT_COMPLETE').waitFor({ state: 'visible', timeout: 30_000 });
|
||||
const timeline = page.getByTestId('coding-conversation-timeline');
|
||||
const forkActions = timeline.getByRole('button', { name: '从这里创建新对话分支' });
|
||||
await forkActions.waitFor({ state: 'visible', timeout: 30_000 });
|
||||
|
||||
Reference in New Issue
Block a user