diff --git a/tests/src/Functional/IntegrationTest.php b/tests/src/Functional/IntegrationTest.php index 3bfbd64..1ec3d27 100644 --- a/tests/src/Functional/IntegrationTest.php +++ b/tests/src/Functional/IntegrationTest.php @@ -336,6 +336,12 @@ class IntegrationTest extends SearchApiBrowserTestBase { $this->assertSession()->pageTextContains('Please configure the used datasources.'); $this->submitForm([], 'Save and add fields'); + $this->checkForMetaRefresh(); + $message = ''; + foreach ($this->getSession()->getPage()->findAll('css', '.messages') as $node) { + $message .= "\n" . $node->getText(); + } + $this->assertContains('The index was successfully saved.', $message); $this->assertSession()->pageTextContains('The index was successfully saved.'); $this->indexStorage->resetCache([$index2_id]); $index = $this->indexStorage->load($index2_id); diff --git a/tests/src/Functional/ProcessorIntegrationTest.php b/tests/src/Functional/ProcessorIntegrationTest.php index a8cdb02..52c0660 100644 --- a/tests/src/Functional/ProcessorIntegrationTest.php +++ b/tests/src/Functional/ProcessorIntegrationTest.php @@ -476,7 +476,7 @@ TAGS $configuration = [ 'default' => 1, 'roles' => [ - 'anonymous', + 'anonymous' => 'anonymous', ], ]; $this->editSettingsForm($configuration, 'role_filter'); @@ -502,7 +502,9 @@ TAGS $this->assertSession()->responseContains(new FormattableMarkup('Field %label was added to the index.', $args)); $this->assertSession()->addressEquals($this->getIndexPath('fields/rendered_item/edit')); $edit = [ - 'roles[]' => ['authenticated'], + 'roles' => [ + 'authenticated' => 'authenticated', + ], 'view_mode[entity:node][article]' => 'default', 'view_mode[entity:node][page]' => 'teaser', ];