Skip to content

Enable back Calendar and Rating Change events + more details on Select issue.#266

Open
MayaKirova wants to merge 1 commit into
masterfrom
mkirova/revise-change-events
Open

Enable back Calendar and Rating Change events + more details on Select issue.#266
MayaKirova wants to merge 1 commit into
masterfrom
mkirova/revise-change-events

Conversation

@MayaKirova

Copy link
Copy Markdown
Contributor

Enable back Calendar and Rating Change events. Add more details on why Select Change cannot be mocked ATM.
Closes #262


eventMessage = "";
var res = await JS.InvokeAsync<object>("triggerEvent", evtName, argDetailToSend);
var res = await JS.InvokeAsync<object>("triggerEvent", evtName, argDetailToSend, detailType == typeof(DateTime));
@MayaKirova
MayaKirova requested a review from damyanpetev July 24, 2026 07:04
@MayaKirova
MayaKirova marked this pull request as ready for review July 24, 2026 07:05
Copilot AI review requested due to automatic review settings July 24, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the Lite TestBed’s bulk-automation harness to re-enable Change event validation for IgbCalendar and IgbRating, while documenting why IgbSelect.Change remains excluded due to an unmockable complex event detail type. It improves the fidelity of synthetic event dispatch so these events can be triggered reliably during automated API checks.

Changes:

  • Updates synthetic event triggering to support DateTime-backed details by sending a real JS Date in CustomEvent.detail.
  • Removes Change from the excluded events list for IgbCalendar and IgbRating, and clarifies the exclusion rationale for IgbSelect.Change.
  • Extends reflection-based event-detail detection with a calendar-specific object -> DateTime mapping and adjusts the default sample double value used for synthetic payloads.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/IgniteUI.Blazor.Lite.TestBed/wwwroot/app.js Enhances triggerEvent to optionally convert payloads into a JS Date for date-based event details.
tests/IgniteUI.Blazor.Lite.TestBed/componentsConfig.json Re-enables Change event testing for Calendar/Rating; documents Select’s Change exclusion due to complex detail payload.
tests/IgniteUI.Blazor.Lite.TestBed/Components/Pages/Home.razor Passes inferred detail-type info into triggerEvent and updates reflection call signature.
tests/IgniteUI.Blazor.Lite.TestBed/Components/Common/ReflectionUtils.cs Adds calendar-specific detail-type handling and adjusts sample double generation for event/property mocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar, Select and Rating Change events fail in API bulk automation

2 participants