Prompt file imported from wdenk/agenticengineering-tac5 (
.claude/commands/e2e/test_field_preview_statistics.md). Copyright stays with the author.
E2E Test: Field Preview Statistics
Test that compact summary statistics appear below each column type badge in the schema panel after uploading sample data.
User Story
As a data analyst using the Natural Language SQL Interface I want to see a quick summary statistic for each field in the schema preview So that I can understand the shape of my data at a glance before writing queries
Test Steps
-
Navigate to the
Application URL -
Take a screenshot of the initial state (empty schema panel)
-
Verify core UI elements are present:
- Query input textbox
- "Upload Data" button
- "Available Tables" section showing no tables loaded
-
Click the "Upload Data" button to open the upload modal
-
Click the "Users Data" sample button to load the users dataset
-
Wait for upload success (modal should close and success message should appear)
-
Verify the "users" table appears in the "Available Tables" section
-
Take a screenshot of the schema panel with the users table loaded
-
Wait 2 seconds for field stats to load asynchronously
-
Take a close screenshot of the column stats area in the users table
-
Verify that at least one column tag in the users table contains a stat element:
- Look for
.mini-bar-chartelements (for numeric or category columns) - Or
.stat-inlineelements (for id or date columns) - At minimum, the schema panel should render columns successfully
- Look for
-
Verify that an INTEGER non-id column (e.g.,
age) shows a bar chart with.mini-bar-chartclass (numeric distribution) -
Verify that a column named
nameoremailshows NO stat element (personal data is skipped for privacy) -
Click the "Upload Data" button again
-
Click the "Products Data" (or similar) sample button to load a second dataset with categorical data
-
Wait for upload success
-
Take a screenshot of the full schema panel with multiple tables
-
Verify that a TEXT category column in any loaded table shows top-values bars (
.mini-bar-chart) -
Take a final screenshot of the complete schema panel showing field stats
Success Criteria
- After uploading Users Data, the "users" table appears in the schema panel
- At least one column in the users table shows a stat element (
.mini-bar-chartor.stat-inline) - The
agecolumn (INTEGER non-id) shows a distribution bar chart - Columns named
nameoremailshow no stat element (personal data privacy) - Stats load without blocking the schema panel render
- At least 3 screenshots are captured