Skip to content

Comments

ASSETS-62882 Update test to allow and match dynamic IDs#229

Closed
cmrockwell wants to merge 1 commit intoadobe:aem-cloudfrom
cmrockwell:issue/ASSETS-62882_Update_Assets_E2E
Closed

ASSETS-62882 Update test to allow and match dynamic IDs#229
cmrockwell wants to merge 1 commit intoadobe:aem-cloudfrom
cmrockwell:issue/ASSETS-62882_Update_Assets_E2E

Conversation

@cmrockwell
Copy link

@cmrockwell cmrockwell commented Feb 18, 2026

Update asset upload Cypress test for dynamic rename input IDs

https://jira.corp.adobe.com/browse/ASSETS-62882

Description

The asset upload rename input in fileupload.js now appends index to create unique IDs (e.g. dam-asset-upload-rename-input-{idx}) if multiple files are uploaded. The first will be static ID dam-asset-upload-rename-input.

This PR updates the Cypress test in assets.cy.js to target the rename input with an attribute selector that works for both the old static ID and the new unique IDs.

Related Issue

ASSETS-62882

Motivation and Context

The upload UI now assigns a unique ID per rename input to avoid ID collisions when multiple uploads or dialogs are in use. The test previously used input#dam-asset-upload-rename-input, which fails when the ID is dynamic. Using input[id^="dam-asset-upload-rename-input"] keeps the test passing for both the legacy static ID and the new unique IDs, so the test stays compatible with current and older AEM Assets behavior.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@cmrockwell cmrockwell marked this pull request as ready for review February 18, 2026 23:09
@cmrockwell cmrockwell closed this Feb 20, 2026
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.

1 participant