Commit b5e99584 authored by catch's avatar catch
Browse files

Revert "fix: #3543036 Cannot enable both views_test_entity_reference and...

Revert "fix: #3543036 Cannot enable both views_test_entity_reference and entity_reference_test in testing"

This reverts commit 89fb06f1.
parent 324c8fa3
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4,10 +4,10 @@ dependencies:
  module:
    - node
    - user
id: views_test_entity_reference_filtered_display
label: 'Views Test Entity Reference Filtered Display'
id: test_entity_reference
label: 'Test Entity Reference'
module: views
description: 'Test Entity Reference Display filtered to only display one article node with the label "Article 0"'
description: ''
tag: ''
base_table: node_field_data
base_field: nid
+4 −4
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ class FilterEntityReferenceTest extends WebDriverTestBase {
   *
   * @var array
   */
  public static $testViews = ['views_test_entity_reference_filtered_display'];
  public static $testViews = ['test_entity_reference'];

  /**
   * {@inheritdoc}
@@ -129,7 +129,7 @@ public function testAddEntityReferenceFieldWithDefaultSelectionHandler(): void {

    // Opening the settings form and change the handler to use an Entity
    // Reference view.
    // @see views.view.views_test_entity_reference_filtered_display.yml
    // @see views.view.test_entity_reference.yml
    $base_url = Url::fromRoute('entity.view.collection')->toString();
    $url = $base_url . '/nojs/handler-extra/content/page_1/filter/field_test_target_id';
    $extra_settings_selector = 'a[href="' . $url . '"]';
@@ -138,7 +138,7 @@ public function testAddEntityReferenceFieldWithDefaultSelectionHandler(): void {
    $element->click();
    $assert->waitForField('options[sub_handler]');
    $page->selectFieldOption('options[sub_handler]', 'views');
    $page->selectFieldOption('options[reference_views][view][view_and_display]', 'views_test_entity_reference_filtered_display:entity_reference');
    $page->selectFieldOption('options[reference_views][view][view_and_display]', 'test_entity_reference:entity_reference');
    $page->find('xpath', "//*[contains(text(), 'Apply')]")
      ->press();
    $assert->assertWaitOnAjaxRequest();
@@ -152,7 +152,7 @@ public function testAddEntityReferenceFieldWithDefaultSelectionHandler(): void {
    // Change to an autocomplete filter.
    // Opening the settings form and change the handler to use an Entity
    // Reference view.
    // @see views.view.views_test_entity_reference_filtered_display.yml
    // @see views.view.test_entity_reference.yml
    $page->find('css', $extra_settings_selector)
      ->click();
    $assert->waitForElementVisible('named', [