Below is a manual test case written in a Zephyr-style format. Zephyr test cases typically include structured sections such as Test Case ID, Summary, Preconditions, Test Steps, Expected Results, and Postconditions. This test case is designed to verify that the new, modern Angular table component functions identically to the old one after the swap.
I've made this test case generic to cover common table functionalities (e.g., data rendering, sorting, filtering, and pagination), as you mentioned "several" components. You can adapt it for specific tables by modifying the details in the Preconditions and Test Steps sections. The focus is on ensuring functional equivalence, so the test emphasizes comparing behaviors between the old and new implementations.
Test Case ID: TC-001-TableComponentSwap
Test Case Summary: Verify that the new modern Angular table component functions identically to the old table component in terms of core functionalities, including data rendering, sorting, filtering, and pagination. This ensures no regressions occur after the component swap.
Module: Angular Components
Component: Table Component (Old vs. New)
Priority: High
Test Type: Manual
Test Environment: Web browser (e.g., Chrome latest version) with Angular application running locally or on a staging server.
Test Data: Sample dataset for the table (e.g., a JSON array of objects with fields like 'id', 'name', 'age', and 'status').
Preconditions:
- The Angular application is deployed and accessible.
- Both the old and new table components are available for comparison (e.g., via feature flags, separate routes, or a test harness page).
- Example: A test page with two sections – one using the old table component and one using the new one, both displaying the same sample data.
- Sample data is pre-loaded into the application (e.g., via a mock API or hardcoded array). The data should include at least 10-20 rows with varied values to test sorting, filtering, and pagination.
- The tester has access to developer tools in the browser to inspect elements if needed, but no automation scripts are used.
- The application is in a clean state (e.g., no unsaved changes or prior interactions).
Test Steps:
- Navigate to the test page in the application that displays both the old and new table components side by side or via tabs/switches.
- Ensure the sample data is loaded and visible in both tables.
- Perform the following actions on both the old and new table components sequentially:
a. Verify basic data rendering by scrolling through the table.
b. Sort a column (e.g., click on the 'name' column header).
c. Apply a filter (e.g., enter a value in a filter input for the 'status' column, like filtering for 'active').
d. Navigate through pages if pagination is enabled (e.g., click 'Next Page' on a table with 10 rows per page).
e. Select one or more rows (e.g., click a checkbox or row if selection is supported).
f. If applicable, perform an action like editing a cell or clicking a button within a row.
- Repeat steps 3a-3f for each table component (old and new), noting any differences in behavior.
- Reset the table to its initial state (e.g., clear filters and sorts) and verify the reset works on both.
Expected Results:
- Both the old and new table components should display the sample data correctly, with identical column headers, row counts, and data formatting (e.g., no visual discrepancies in text, alignment, or styling that affect functionality).
- After sorting a column (e.g., 'name'), both tables should reorder the rows in the same ascending or descending order based on the data values.
- After applying a filter (e.g., 'status = active'), both tables should show the same filtered subset of rows, with the correct row count and no extraneous data.
- For pagination, both tables should display the correct number of rows per page (e.g., 10 rows), and navigation controls (e.g., 'Next'/'Previous') should work identically, showing the same data on each page.
- Row selection should behave the same way in both tables (e.g., selected rows should highlight consistently, and any associated actions, like a 'Delete Selected' button, should be enabled/disabled based on the same logic).
- If editing or other interactions are tested, both tables should respond identically (e.g., editing a cell updates the data in real-time or via a save action).
- After resetting the table, both components should return to their initial state with all data visible, filters cleared, and sorts removed.
- No errors (e.g., JavaScript console errors, UI freezes, or unexpected behaviors) should occur in either component during the test.
Postconditions:
- The application should be left in its initial state (e.g., tables reset, no data changes persisted).
- If any defects are found (e.g., discrepancies between old and new components), log them in the defect tracking system with screenshots or notes for reference.
- Ensure the browser session is closed or refreshed to avoid any cached state affecting subsequent tests.
Attachments/Notes:
- Screenshots: Capture before-and-after states for each step (e.g., before and after sorting) for both components to document any visual differences.
- Additional Notes: This test case assumes basic table functionalities. If your tables have custom features (e.g., row grouping, exporting data), extend the Test Steps and Expected Results accordingly. Test this case on multiple browsers (e.g., Chrome, Firefox) to ensure cross-browser compatibility.
This test case is designed to be executable by a manual tester, with clear steps to follow and criteria for success. It promotes a systematic comparison to confirm functional equivalence. If you need more test cases for specific scenarios or variations (e.g., edge cases like empty data sets), let me know!