Regression with setting focus in test environment #7740
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
has workaround
Issues have a workaround available in the meantime.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - medium
Issue is non core or affecting less that 60% of people using the library
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Milestone
Check existing issues
Actual Behavior
In an automated test, if multiple components are given focus in quick succession, there's a race condition as to which one will actually retain focus.
Expected Behavior
In an automated test, if multiple components are given focus in quick succession, the last component to gain focus retains it.
Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/eYbRGqP
Reproduction Steps
Reproduction Version
1.8.0
Relevant Info
The code sample aims to mimic how an automated test interacts with components. Specifically via dispatched events instead of calling and awaiting
setFocus()
directly.The issue appears to stem from changes in #7255 and #7277.
Regression?
1.4.3
Priority impact
p2 - want for current milestone
Impact
This issue represents a significant amount of effort for the Field Maps team to debug and rewrite tests in order to upgrade beyond Calcite 1.4.3.
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: