[CST-15592] improve tests, add attributes for testing, fix wrong references

This commit is contained in:
FrancescoMolinaro
2024-07-23 17:13:20 +02:00
parent 4cd55d6669
commit 69f618e856
9 changed files with 50 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ describe('Admin Export Modals', () => {
// Click on entry of menu
cy.get('#admin-menu-section-export-title').click();
cy.get('a[title="menu.section.export_metadata"]').click();
cy.get('a[data-test="menu.section.export_metadata"]').click();
// Analyze <ds-export-metadata-selector> for accessibility
testA11y('ds-export-metadata-selector');
@@ -27,7 +27,7 @@ describe('Admin Export Modals', () => {
// Click on entry of menu
cy.get('#admin-menu-section-export-title').click();
cy.get('a[title="menu.section.export_batch"]').click();
cy.get('a[data-test="menu.section.export_batch"]').click();
// Analyze <ds-export-batch-selector> for accessibility
testA11y('ds-export-batch-selector');