Skip to content

Fix a failing JS test#354

Merged
cigamit merged 1 commit into
mainfrom
tests260521
May 23, 2026
Merged

Fix a failing JS test#354
cigamit merged 1 commit into
mainfrom
tests260521

Conversation

@cigamit
Copy link
Copy Markdown
Contributor

@cigamit cigamit commented May 22, 2026

Test was failing from the recent redesign.

@cigamit cigamit requested a review from TheWitness May 22, 2026 00:11
@cigamit cigamit self-assigned this May 22, 2026
Copilot AI review requested due to automatic review settings May 22, 2026 00:11
@cigamit cigamit added bug Something isn't working javascript Pull requests that update javascript code labels May 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates a flaky failing ScheduleForm unit test in the AWX UI that broke after the recent redesign by deriving the end date/time from the rendered start date/time instead of using DateTime.now() and new Date(<yyyy-mm-dd>).

Changes:

  • Read the rendered Start date and Start time values from the form and compute an end time slightly later.
  • Pass a JS Date created via Luxon parsing (matching the provided date string) to the DatePicker onChange, avoiding timezone-dependent parsing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cigamit cigamit merged commit d1f7f23 into main May 23, 2026
1 check passed
@cigamit cigamit deleted the tests260521 branch May 23, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working javascript Pull requests that update javascript code

Development

Successfully merging this pull request may close these issues.

3 participants