Skip to content
Snippets Groups Projects
Commit 4dd25dc5 authored by Joris Vercammen's avatar Joris Vercammen Committed by Joris Vercammen
Browse files

Issue #2928829 by borisson_: Remove poor mans performance regression test from...

Issue #2928829 by borisson_: Remove poor mans performance regression test from SliderIntegrationTest
parent 77379d1f
No related branches found
No related tags found
No related merge requests found
...@@ -59,23 +59,13 @@ class SliderIntegrationTest extends FacetsTestBase { ...@@ -59,23 +59,13 @@ class SliderIntegrationTest extends FacetsTestBase {
$this->assertSession()->checkboxChecked('edit-facet-settings-slider-status'); $this->assertSession()->checkboxChecked('edit-facet-settings-slider-status');
$startTime = \Drupal::time()->getCurrentMicroTime();
$this->drupalGet('search-api-test-fulltext'); $this->drupalGet('search-api-test-fulltext');
$this->assertFacetBlocksAppear(); $this->assertFacetBlocksAppear();
$this->assertSession()->pageTextContains('Displaying 12 search results'); $this->assertSession()->pageTextContains('Displaying 12 search results');
$stopTime = \Drupal::time()->getCurrentMicroTime();
if (($stopTime - $startTime) > 1) {
$this->fail('Filtering takes too long');
}
// Change the facet block. // Change the facet block.
$startTime = \Drupal::time()->getCurrentMicroTime();
$url = Url::fromUserInput('/search-api-test-fulltext', ['query' => ['f[0]' => 'owl:2']]); $url = Url::fromUserInput('/search-api-test-fulltext', ['query' => ['f[0]' => 'owl:2']]);
$this->drupalGet($url->setAbsolute()->toString()); $this->drupalGet($url->setAbsolute()->toString());
$stopTime = \Drupal::time()->getCurrentMicroTime();
if (($stopTime - $startTime) > 1) {
$this->fail('Filtering takes too long');
}
// Check that the results have changed to the correct amount of results. // Check that the results have changed to the correct amount of results.
$this->assertSession()->pageTextContains('Displaying 1 search results'); $this->assertSession()->pageTextContains('Displaying 1 search results');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment