Class: ExampleAppApartmentPhotosPaginationTest
- Inherits:
-
ExampleAppIntegrationTestCase
- Object
- ActionDispatch::IntegrationTest
- ExampleAppIntegrationTestCase
- ExampleAppApartmentPhotosPaginationTest
- Defined in:
- lib/installer_templates/example_app_tests/test/integration/example_app_apartment_photos_pagination_test.rb
Overview
Smoke test for rollout step 2 of stuff/ujs-to-turbo.md (gem-side): the nested has_many list (apartments -> photos) is now wrapped in a <turbo-frame> and pagination is no longer remote: true. Relies on the SeedKonferenshaPhotos migration that the inline_forms installer generates when invoked with –example: it creates a “Konferensha” Apartment with one Photo per file in db/seed_images/, and the gem ships 12 sample jpgs in pics/, so combined with ‘Photo.per_page = 5` (also set by the installer) this gallery paginates 5 / 5 / 2.