Skip to content
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

EWPP-3018: Nodes are shown twice when using test module. #180

Merged
merged 3 commits into from
May 10, 2023
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 @@ -90,13 +90,13 @@ public function testListPageTranslatedContent(): void {
$this->getSession()->getPage()->pressButton('Save');

// In English we see the EN version.
$this->assertSession()->pageTextContains('Banana title EN');
$this->assertSession()->pageTextContainsOnce('Banana title EN');

// Switch to French and assert we see the translation.
$link_list = $this->getLinkListByTitle('List page list');
$this->drupalGet($link_list->toUrl('canonical', ['language' => \Drupal::languageManager()->getLanguage('fr')]));

$this->assertSession()->pageTextContains('Banana title FR');
$this->assertSession()->pageTextContainsOnce('Banana title FR');
$this->assertSession()->pageTextNotContains('Banana title EN');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Body
url_alias: body
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: body
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
fulltext_all_fields: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Created
url_alias: created
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: created
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
date_type: date
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: 'Foo - no contextual'
url_alias: foo_no_contextual
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: oe_list_pages_filters_test_foo_field_no_contextual
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@ status: true
dependencies: { }
id: id
name: ID
url_alias: id
weight: 0
min_count: 1
url_alias: id
facet_source_id: 'list_facet_source:node:content_type_one'
missing: false
missing_label: others
show_only_one_result: false
field_identifier: nid
facet_source_id: 'list_facet_source:node:content_type_one'
widget:
type: oe_list_pages_multiselect
config:
show_numbers: false
query_operator: or
hard_limit: 0
exclude: false
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
widget:
type: oe_list_pages_multiselect
config:
show_numbers: false
empty_behavior:
behavior: none
hard_limit: 0
exclude: false
only_visible_when_facet_source_is_visible: true
show_only_one_result: false
show_title: false
processor_configs:
active_widget_order:
processor_id: active_widget_order
Expand All @@ -52,3 +51,6 @@ processor_configs:
pre_query: 50
build: 15
settings: { }
empty_behavior:
behavior: none
show_title: false
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Link
url_alias: link
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: field_link
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Published
url_alias: status
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: status
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
langcode: en
status: true
dependencies:
module:
- facets
config:
- node.type.content_type_two
- search_api.server.database_server
dependencies: { }
id: list_facet_source_node_content_type_twofield_select_two
name: 'Select two'
url_alias: select_two
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: field_select_two
facet_source_id: 'list_facet_source:node:content_type_two'
url_alias: select_two
weight: 0
widget:
type: oe_list_pages_multiselect
config:
show_numbers: false
query_operator: null
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
langcode: en
status: true
dependencies:
module:
- facets
config:
- node.type.content_type_two
- search_api.server.database_server
- search_api.server.database_server
dependencies: { }
id: list_facet_source_node_content_type_twostatus
name: 'Facet for status'
url_alias: status
weight: null
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: status
facet_source_id: 'list_facet_source:node:content_type_two'
Expand All @@ -21,6 +17,10 @@ widget:
show_numbers: false
query_operator: null
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Foo
url_alias: oe_list_pages_filters_test_test_field
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: oe_list_pages_filters_test_foo_field
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Reference
url_alias: reference
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: field_reference
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: 'Select one'
url_alias: select_one
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: field_select_one
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: 'Test Boolean'
url_alias: test_boolean
weight: 0
min_count: 1
missing: false
missing_label: others
show_only_one_result: false
field_identifier: field_test_boolean
facet_source_id: 'list_facet_source:node:content_type_one'
Expand All @@ -15,6 +17,10 @@ widget:
show_numbers: false
query_operator: or
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
uuid: 1cb9e88b-a1f5-4922-a66f-a4acae304d6b
langcode: en
status: true
dependencies:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
uuid: aac2b33b-4a4c-4c5f-a9e8-7392a6564052
langcode: en
status: true
dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ langcode: en
status: true
dependencies:
module:
- emr
name: 'Content type one'
type: content_type_one
- oe_list_pages
third_party_settings:
oe_list_pages:
default_exposed_filters:
Expand All @@ -13,6 +11,8 @@ third_party_settings:
default_sort:
name: created
direction: DESC
name: 'Content type one'
type: content_type_one
description: ''
help: ''
new_revision: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ langcode: en
status: true
dependencies:
module:
- emr
name: 'Content type two'
type: content_type_two
description: ''
- oe_list_pages
third_party_settings:
oe_list_pages:
default_exposed_filters:
- list_facet_source_node_content_type_twofield_select_two
name: 'Content type two'
type: content_type_two
description: ''
help: ''
new_revision: true
preview_mode: 0
Expand Down
Loading