Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1086,10 +1086,21 @@ describe('full FilesTab source edit browser + real IPC handlers over HTTP', () =
});
// Hold across the overlay's 200 ms refresh to expose pre-submit mutation races.
await saveText('Stable text', 'Must not save', 300);
// Selection refresh can replace the transient save message. Check retained
// validation evidence and the disabled control instead.
await expect.poll(validationReplies).toContainEqual(
expect.objectContaining({
fieldStates: expect.arrayContaining([expect.objectContaining({ status: 'changed' })]),
}),
);
await page.waitForFunction(() =>
document.querySelector('aside[aria-busy]')?.textContent?.includes('could not be verified'),
document
.querySelector('[aria-label="Save source definition: Text 1"]')
?.hasAttribute('disabled'),
);
expect(await page.$eval('aside[aria-busy]', (node) => node.textContent)).toContain(
'changed from its source',
);
expect((await validationReplies()).length).toBeGreaterThan(0);
expect(records.filter((record) => record.method === 'apply')).toHaveLength(0);
expect(await disk()).toBe(previewOnlyFixture);
await assertPreviewText('#between', 'Runtime changed');
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@testing-library/user-event": "^14.5.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"happy-dom": "^20.9.0",
"happy-dom": "^21.0.4",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"tailwindcss": "^4.3.3",
Expand Down
101 changes: 62 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading