- Issue created by @phenaproxima
- 🇮🇪Ireland lostcarpark
Steps to reproduce:
- Install Drupal and Project Browser module.
- Go to "Structure->Block Layout"
- Find the "Content" block and select "Place Block"
- Scroll down the list of blocks and find "Contrib Modules" and "Recipes" in the Project Browser category
- Click "Place block" button next to "Recipes"
- In the block settings, uncheck "Pagination", then save
- Go to front page of site and view mini browser block
The browser will show "12 results" above the list of recipes
- 🇺🇸United States tim.plunkett Philadelphia
There's a test for pagination across multiple project browser instances that *should* be able to test this too.
Look for
\Drupal\Tests\project_browser\FunctionalJavascript\MultipleInstancesTest::testIndependentPagination()
- 🇮🇪Ireland lostcarpark
I think the Tim's suggestion seems overkill for this, and I don't think a FunctionalJavascript test is required.
My thinking is the test should place a block with pagination enabled, and verify the result count is displayed. Then edit the block, disable pagination, and verify result count not shown.
There are some existing Functional tests in the file
ProjectBrowserBlockTest.php
that should be very similar, and it should be very straightforward to add a very similar test.