-
Notifications
You must be signed in to change notification settings - Fork 2
Copy FileDef binaries when installing a listing #671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ const testDestinationRealmURL = `http://test-realm/test2/`; | |
| //listing | ||
| const authorListingId = `${mockCatalogURL}Listing/author`; | ||
| const blogPostListingId = `${mockCatalogURL}Listing/blog-post`; | ||
| const photoPostListingId = `${mockCatalogURL}Listing/photo-post`; | ||
|
|
||
| export function runTests() { | ||
| module.skip( | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Claude Code 🤖] Intentional, unfortunately: the whole listing-install live module is skipped because every test in it fails at |
||
|
|
@@ -166,6 +167,32 @@ export function runTests() { | |
| await verifyFileInFileTree(assert, authorCompanyExamplePath); | ||
| }); | ||
|
|
||
| test('listing installs binary files linked from examples', async function (assert) { | ||
| const listingName = 'photo-post'; | ||
|
|
||
| await executeCommand( | ||
| ListingInstallCommand, | ||
| photoPostListingId, | ||
| testDestinationRealmURL, | ||
| ); | ||
| await visitOperatorMode({ | ||
| submode: 'code', | ||
| fileView: 'browser', | ||
| codePath: `${testDestinationRealmURL}index`, | ||
| }); | ||
|
|
||
| let outerFolder = await verifyFolderWithUUIDInFileTree( | ||
| assert, | ||
| listingName, | ||
| ); | ||
| let examplePath = `${outerFolder}photo-post/PhotoPost/example.json`; | ||
| await openDir(assert, examplePath); | ||
| await verifyFileInFileTree(assert, examplePath); | ||
| let photoPath = `${outerFolder}photo-post/photo.png`; | ||
| await openDir(assert, photoPath); | ||
| await verifyFileInFileTree(assert, photoPath); | ||
| }); | ||
|
|
||
| test('field listing', async function (assert) { | ||
| const listingName = 'contact-link'; | ||
| const contactLinkFieldListingCardId = `${mockCatalogURL}FieldListing/contact-link`; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Claude Code 🤖] Good catch — changed in 22ff059: the fixture now uses a relative
links.self(../photo.png), matching the on-disk shape of catalog content, withdata.idkept absolute as the card GET serves it. That's the exact geometry the fix has to satisfy: the relative link must re-resolve inside the install directory after the binary is copied.