This commit is contained in:
@@ -2,7 +2,6 @@ import { test, expect, type Page } from '@playwright/test';
|
||||
import { createRequire } from 'node:module';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname, resolve, join } from 'node:path';
|
||||
import { tmpdir } from 'node:os';
|
||||
|
||||
// ── M0: WORKSPACE FILE → AGENT INPUT E2E ─────────────────────────────────────
|
||||
//
|
||||
@@ -27,7 +26,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const require = createRequire(import.meta.url);
|
||||
const repoRoot = resolve(__dirname, '..', '..');
|
||||
|
||||
const e2eTmp = join(tmpdir(), 'maestro-e2e-auth');
|
||||
const e2eTmp = process.env.E2E_AUTH_TMP;
|
||||
if (!e2eTmp) throw new Error('E2E_AUTH_TMP must be set by playwright.auth.config.ts');
|
||||
const DB_PATH = join(e2eTmp, 'e2e-auth.db');
|
||||
|
||||
const USER = { email: '[email protected]', password: 'WsFile123!', name: 'WsFileUser' };
|
||||
@@ -129,10 +129,12 @@ test('opening a fresh chat surfaces step 4 guidance: artifacts live in the outpu
|
||||
|
||||
// Open the Files tab of the opened chat, then switch to the output/ section.
|
||||
// Brand-new chat → output/ is empty → the step 4 hint explains where the
|
||||
// agent's artifacts will land. (The FileBrowser section switcher buttons are
|
||||
// plain-text 'workspace'/'input'/'output'/'logs'.)
|
||||
// agent's artifacts will land. The section switcher button is addressed by its
|
||||
// testid: its label is the plain folder name 'output', and the breadcrumb root
|
||||
// (task-files-breadcrumb-root) carries the same label, so a by-name lookup
|
||||
// matches two elements.
|
||||
await page.getByTestId('space-chat-tab-files').click();
|
||||
await page.getByRole('button', { name: 'output', exact: true }).click();
|
||||
await page.getByTestId('task-file-section-output').click();
|
||||
await expect(page.getByTestId('output-empty-hint')).toBeVisible({ timeout: 15_000 });
|
||||
await expect(page.getByTestId('output-empty-hint')).toContainText('output/');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user