From ad413156209193c5ce65f6caa26fb8776f2aa025 Mon Sep 17 00:00:00 2001 From: Katia Aresti Date: Thu, 9 Nov 2023 11:57:51 +0100 Subject: [PATCH] Fixes duplicate id --- cypress/e2e/3_cache-crud-wizard.cy.js | 4 ++-- src/app/Caches/Create/DownloadCacheModal.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/3_cache-crud-wizard.cy.js b/cypress/e2e/3_cache-crud-wizard.cy.js index 2662dcc3..6f55c686 100644 --- a/cypress/e2e/3_cache-crud-wizard.cy.js +++ b/cypress/e2e/3_cache-crud-wizard.cy.js @@ -105,13 +105,13 @@ describe('Cache Creation Wizard', () => { downloadedFile.its('distributed-cache.mode').should('eq', 'SYNC'); cy.get('[data-cy=downloadModal]').click(); - cy.get('#XML').click(); + cy.get('#modal-XML').click(); cy.get('[data-cy=downloadButton]').click(); downloadedFile = cy.readFile('./cypress/downloads/asuper-cache.xml'); downloadedFile.should('exist'); cy.get('[data-cy=downloadModal]').click(); - cy.get('#YAML').click(); + cy.get('#modal-YAML').click(); cy.get('[data-cy=downloadButton]').click(); downloadedFile = cy.readFile('./cypress/downloads/asuper-cache.yaml'); downloadedFile.should('exist'); diff --git a/src/app/Caches/Create/DownloadCacheModal.tsx b/src/app/Caches/Create/DownloadCacheModal.tsx index c10aa084..82aa0cd1 100644 --- a/src/app/Caches/Create/DownloadCacheModal.tsx +++ b/src/app/Caches/Create/DownloadCacheModal.tsx @@ -160,7 +160,7 @@ const DownloadCacheModal = (props: { { setDownloadLanguage(ConfigDownloadType.JSON); }} @@ -169,14 +169,14 @@ const DownloadCacheModal = (props: { /> setDownloadLanguage(ConfigDownloadType.XML)} isChecked={(downloadLanguage as ConfigDownloadType) == ConfigDownloadType.XML} label={t('caches.create.review.xml')} /> setDownloadLanguage(ConfigDownloadType.YAML)} isChecked={(downloadLanguage as ConfigDownloadType) == ConfigDownloadType.YAML} label={t('caches.create.review.yaml')}