Commit 4dd25dc5 authored by borisson_'s avatar borisson_ Committed by borisson_

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
......@@ -59,23 +59,13 @@ class SliderIntegrationTest extends FacetsTestBase {
$this->assertSession()->checkboxChecked('edit-facet-settings-slider-status');
$startTime = \Drupal::time()->getCurrentMicroTime();
$this->drupalGet('search-api-test-fulltext');
$this->assertFacetBlocksAppear();
$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.
$startTime = \Drupal::time()->getCurrentMicroTime();
$url = Url::fromUserInput('/search-api-test-fulltext', ['query' => ['f[0]' => 'owl:2']]);
$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.
$this->assertSession()->pageTextContains('Displaying 1 search results');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment