From 5471b84181584e95f4c561d5007fc29a7d54b95c Mon Sep 17 00:00:00 2001 From: Cris Rockwell Date: Wed, 18 Feb 2026 17:48:06 -0500 Subject: [PATCH] ASSETS-62882 Update test to allow and match dynamic IDs --- ui-cypress/test-module/cypress/e2e/assets.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-cypress/test-module/cypress/e2e/assets.cy.js b/ui-cypress/test-module/cypress/e2e/assets.cy.js index 7804ab8..bc98377 100644 --- a/ui-cypress/test-module/cypress/e2e/assets.cy.js +++ b/ui-cypress/test-module/cypress/e2e/assets.cy.js @@ -48,8 +48,8 @@ describe('AEM Assets', () => { // Wait for any lazy loaded dialogs to appear cy.wait(3000) - // rename image - cy.get('input#dam-asset-upload-rename-input').clear().type(remoteImageName, {force: true}); + // rename image (works with static or unique ID: dam-asset-upload-rename-input or dam-asset-upload-rename-input-{timestamp}-{random}) + cy.get('input[id^="dam-asset-upload-rename-input"]').clear().type(remoteImageName, {force: true}); // Press the upload button. cy.get('coral-dialog.is-open coral-dialog-footer [variant="primary"]').click({force: true});