Closes #21766: Add reusable tests for sortable table columns #8

Open
opened 2026-04-05 16:21:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 4/3/2026

Fixes: #21766

Introduce TableTestCases.OrderableColumnsTestCase, a reusable base class for table ordering smoke tests.

The new helper discovers sortable columns from list-view querysets and verifies that each one renders without exceptions when ordered in both ascending and descending directions. This gives us a consistent way to catch unsupported ordering across model-backed tables without duplicating the same test logic in each app.

This PR also adds per-table smoke tests across circuits, core, dcim, extras, ipam, tenancy, users, virtualization, vpn, and wireless.

*Originally created by @pheus on 4/3/2026* ### Fixes: #21766 Introduce `TableTestCases.OrderableColumnsTestCase`, a reusable base class for table ordering smoke tests. The new helper discovers sortable columns from list-view querysets and verifies that each one renders without exceptions when ordered in both ascending and descending directions. This gives us a consistent way to catch unsupported ordering across model-backed tables without duplicating the same test logic in each app. This PR also adds per-table smoke tests across circuits, core, dcim, extras, ipam, tenancy, users, virtualization, vpn, and wireless.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#8