test(e2e): seed source control diff before opening panel (#17784)

This commit is contained in:
Jinwoo Hong
2026-08-31 22:22:17 -04:00
committed by GitHub
parent 12be5aed9e
commit 1efd4e1a97
@@ -19,10 +19,10 @@ test('@golden opens an unstaged file diff from Source Control', async ({
}) => {
const fixture = createGoldenWorktree(testRepoPath, 'open-diff')
registerPostElectronShutdownCleanup(async () => cleanupGoldenWorktree(testRepoPath, fixture))
seedGoldenSourceEdit(fixture.worktreePath)
await waitForSessionReady(orcaPage)
await openGoldenSourceControl(orcaPage, testRepoPath, fixture)
seedGoldenSourceEdit(fixture.worktreePath)
const changedFile = orcaPage
.locator('[data-testid="source-control-entry"]')