Skip to content

fix(datetimeinput): correct time-input label query in invalid-input tests#3445

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/datetimeinput-time-test-label
Jul 2, 2026
Merged

fix(datetimeinput): correct time-input label query in invalid-input tests#3445
cixzhang merged 1 commit into
mainfrom
navi/fix/datetimeinput-time-test-label

Conversation

@cixzhang

@cixzhang cixzhang commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Three DateTimeInput tests (added in #3403, forms-8) query the time sub-input via getByLabelText('Time'), but the time input's accessible name is ${label} time (e.g. "Meeting time"). After #3403 merged, these 3 tests fail on main with "Unable to find a label with the text of: Time", turning the required test check red.

Fix

Align the 3 queries with the actual label (getByLabelText('Meeting time')), matching every other test in the file. Test-only change; no component behavior change.

Part of the accessibility & keyboard-management program (#3343).

…ests

The invalid-typed-time tests queried getByLabelText('Time'), but the
time sub-input's accessible name is `${label} time` (e.g. 'Meeting
time'). Align the 3 queries with the actual label so the suite passes.
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 2, 2026 7:19pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2026
@cixzhang cixzhang enabled auto-merge (squash) July 2, 2026 19:19
@cixzhang cixzhang merged commit 792c68e into main Jul 2, 2026
15 checks passed
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants