@museumwnf/viewer-layout 3.64.0 → 3.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.65.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/dxa/testing.js
CHANGED
|
@@ -493,14 +493,18 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
493
493
|
app.unmount()
|
|
494
494
|
}, 60000)
|
|
495
495
|
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
// Legacy's PartnerProfile (inventory-app#2423): "View Objects" beside the
|
|
497
|
+
// tabs, Google's map under "Museum on Google Maps", no source credit.
|
|
498
|
+
it('renders a partner profile as legacy', async () => {
|
|
499
|
+
const { app, host } = await mountSite(`#/partner/${partner.id}?lang=en`)
|
|
498
500
|
// The name and the city arrive with the translations the view loads.
|
|
499
501
|
await vi.waitFor(() => expect(host.textContent).toContain(partner.name), WAIT)
|
|
500
502
|
await vi.waitFor(() => expect(host.textContent).toContain(partner.city), WAIT)
|
|
503
|
+
expect(host.querySelector('.mwnf-dxa-gallery-profile')).not.toBeNull()
|
|
501
504
|
expect(host.querySelector('.mwnf-partner-map')).not.toBeNull()
|
|
502
|
-
|
|
503
|
-
expect(host.querySelector('.mwnf-
|
|
505
|
+
expect(host.querySelector('.mwnf-dxa-profile-map-label').textContent).toBe('Museum on Google Maps')
|
|
506
|
+
expect(host.querySelector('.mwnf-partner-panel__actions').textContent).toContain('View Objects')
|
|
507
|
+
expect(host.querySelector('.mwnf-source-credit')).toBeNull()
|
|
504
508
|
app.unmount()
|
|
505
509
|
}, 60000)
|
|
506
510
|
|