-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
281 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
uuid: ed03f628-2d83-4f82-aeb8-6c59d150757d | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: meta | ||
label: Meta | ||
description: 'Meta links.' | ||
locked: false |
68 changes: 68 additions & 0 deletions
68
...es/drupal/test_content/content/menu_link_content/4aa4a86f-8e0f-441d-8fcb-ac95b15ed13c.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
_meta: | ||
version: '1.0' | ||
entity_type: menu_link_content | ||
uuid: 4aa4a86f-8e0f-441d-8fcb-ac95b15ed13c | ||
bundle: menu_link_content | ||
default_langcode: en | ||
default: | ||
enabled: | ||
- | ||
value: true | ||
title: | ||
- | ||
value: 'Meta item 2' | ||
menu_name: | ||
- | ||
value: meta | ||
link: | ||
- | ||
uri: 'internal:/' | ||
title: '' | ||
options: { } | ||
external: | ||
- | ||
value: false | ||
rediscover: | ||
- | ||
value: true | ||
weight: | ||
- | ||
value: -49 | ||
expanded: | ||
- | ||
value: false | ||
content_translation_source: | ||
- | ||
value: und | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716899458 | ||
translations: | ||
de: | ||
title: | ||
- | ||
value: 'Meta item 2 DE' | ||
content_translation_source: | ||
- | ||
value: en | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716900493 |
68 changes: 68 additions & 0 deletions
68
...es/drupal/test_content/content/menu_link_content/679de789-7c88-494e-866d-062c2abf8fbb.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
_meta: | ||
version: '1.0' | ||
entity_type: menu_link_content | ||
uuid: 679de789-7c88-494e-866d-062c2abf8fbb | ||
bundle: menu_link_content | ||
default_langcode: en | ||
default: | ||
enabled: | ||
- | ||
value: true | ||
title: | ||
- | ||
value: 'Meta item 1' | ||
menu_name: | ||
- | ||
value: meta | ||
link: | ||
- | ||
uri: 'internal:/' | ||
title: '' | ||
options: { } | ||
external: | ||
- | ||
value: false | ||
rediscover: | ||
- | ||
value: true | ||
weight: | ||
- | ||
value: -50 | ||
expanded: | ||
- | ||
value: false | ||
content_translation_source: | ||
- | ||
value: und | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716899070 | ||
translations: | ||
de: | ||
title: | ||
- | ||
value: 'Meta item 1 DE' | ||
content_translation_source: | ||
- | ||
value: en | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716900444 |
73 changes: 73 additions & 0 deletions
73
...es/drupal/test_content/content/menu_link_content/72904161-a94f-4934-98aa-f4b67e2dc9d5.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
_meta: | ||
version: '1.0' | ||
entity_type: menu_link_content | ||
uuid: 72904161-a94f-4934-98aa-f4b67e2dc9d5 | ||
bundle: menu_link_content | ||
default_langcode: en | ||
depends: | ||
679de789-7c88-494e-866d-062c2abf8fbb: menu_link_content | ||
default: | ||
enabled: | ||
- | ||
value: true | ||
title: | ||
- | ||
value: 'Meta item child - should be ignored' | ||
menu_name: | ||
- | ||
value: meta | ||
link: | ||
- | ||
uri: 'internal:/' | ||
title: '' | ||
options: { } | ||
external: | ||
- | ||
value: false | ||
rediscover: | ||
- | ||
value: true | ||
weight: | ||
- | ||
value: -50 | ||
expanded: | ||
- | ||
value: false | ||
parent: | ||
- | ||
value: 'menu_link_content:679de789-7c88-494e-866d-062c2abf8fbb' | ||
content_translation_source: | ||
- | ||
value: und | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716899647 | ||
translations: | ||
de: | ||
title: | ||
- | ||
value: 'Meta item child - should be ignored DE' | ||
content_translation_source: | ||
- | ||
value: en | ||
content_translation_outdated: | ||
- | ||
value: false | ||
content_translation_uid: | ||
- | ||
target_id: 1 | ||
content_translation_status: | ||
- | ||
value: true | ||
content_translation_created: | ||
- | ||
value: 1716900507 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import gql from 'noop-tag'; | ||
import { expect, test } from 'vitest'; | ||
|
||
import { fetch } from '../lib.js'; | ||
|
||
test('Meta', async () => { | ||
const result = await fetch(gql` | ||
{ | ||
metaNavigations { | ||
locale | ||
items { | ||
title | ||
target | ||
} | ||
} | ||
} | ||
`); | ||
expect(result).toMatchInlineSnapshot(` | ||
{ | ||
"data": { | ||
"metaNavigations": [ | ||
{ | ||
"items": [ | ||
{ | ||
"target": "/en", | ||
"title": "Meta item 1", | ||
}, | ||
{ | ||
"target": "/en", | ||
"title": "Meta item 2", | ||
}, | ||
], | ||
"locale": "en", | ||
}, | ||
{ | ||
"items": [ | ||
{ | ||
"target": "/de", | ||
"title": "Meta item 1 DE", | ||
}, | ||
{ | ||
"target": "/de", | ||
"title": "Meta item 2 DE", | ||
}, | ||
], | ||
"locale": "de", | ||
}, | ||
], | ||
}, | ||
} | ||
`); | ||
}); |