import { expect } from 'e2e';
import { test, WEB } from './t3.ts';

test('Session import excludes T3 sandboxes through symlinks and Codex project filing', WEB, async ({t3,app,screen,browser})=>{
 await t3.open('/welcome');
 await screen.getByRole('button', /Review all/).tap();
 await screen.getByRole('button', /Other folders/).tap();
 await screen.getByText('myproj',{exact:true}).waitFor();
 await browser.locator('[data-slot="collapsible-panel"][data-open]:not([data-starting-style])').waitFor();
 await browser.evaluate(async () => { await Promise.all(document.getAnimations().map(a => a.finished.catch(() => {}))); return null; });
 await app.screenshot('external-session-import');
 await expect(screen.getByText('wt-1',{exact:true})).not.toBeVisible();
 await expect(screen.getByText('2',{exact:true})).toBeVisible();
});
