Closed (fixed)
Project:
Project Browser
Version:
2.1.x-dev
Component:
User experience
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Mar 2025 at 15:36 UTC
Updated:
14 Nov 2025 at 15:34 UTC
Jump to comment: Most recent
Comments
Comment #2
ijf8090 commentedComment #3
matthewsmith619 commentedI am working on this as part of #Atlanta2025
Comment #4
matthewsmith619 commentedComment #5
lostcarpark commentedSteps to reproduce:
The browser will show "12 results" above the list of recipes
Comment #7
tim.plunkettThere'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()Comment #8
lostcarpark commentedI 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.phpthat should be very similar, and it should be very straightforward to add a very similar test.Comment #9
chrisfromredfinI think because the fix is in Svelte code, we need a FunctionalJavascriptTest to render the JS.
Comment #10
chrisfromredfinComment #11
chrisfromredfinComment #12
phenaproximaThis seems reasonable to me, with solid test coverage, but I have a few questions/suggestions.
Comment #13
chrisfromredfinOK, everything here is green. Could use another look.
Comment #14
phenaproximaMakes sense to me! Thanks for the detailed comments.
Comment #17
chrisfromredfinmerged and cherry-picked