Skip to content

Commit

Permalink
Fixes duplicate id
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Nov 9, 2023
1 parent 60c468f commit ad41315
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/3_cache-crud-wizard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions src/app/Caches/Create/DownloadCacheModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const DownloadCacheModal = (props: {
<FormGroup hasNoPaddingTop isInline label="Code language" fieldId="code-language-radio-field">
<Radio
name="language-radio"
id="JSON"
id="modal-JSON"
onChange={() => {
setDownloadLanguage(ConfigDownloadType.JSON);
}}
Expand All @@ -169,14 +169,14 @@ const DownloadCacheModal = (props: {
/>
<Radio
name="language-radio"
id="XML"
id="modal-XML"
onChange={() => setDownloadLanguage(ConfigDownloadType.XML)}
isChecked={(downloadLanguage as ConfigDownloadType) == ConfigDownloadType.XML}
label={t('caches.create.review.xml')}
/>
<Radio
name="language-radio"
id="YAML"
id="modal-YAML"
onChange={() => setDownloadLanguage(ConfigDownloadType.YAML)}
isChecked={(downloadLanguage as ConfigDownloadType) == ConfigDownloadType.YAML}
label={t('caches.create.review.yaml')}
Expand Down

0 comments on commit ad41315

Please sign in to comment.