Skip to content

Commit

Permalink
Ensure Admin sidebar link is visible before clicking links
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Jan 15, 2025
1 parent c5f07da commit 5623cc9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions cypress/e2e/admin-add-new-modals.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe('Admin Add New Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('[data-test="admin-menu-section-new-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-new-title"]').click();

cy.get('a[data-test="menu.section.new_community"]').click();
Expand All @@ -25,6 +26,7 @@ describe('Admin Add New Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('[data-test="admin-menu-section-new-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-new-title"]').click();

cy.get('a[data-test="menu.section.new_collection"]').click();
Expand All @@ -38,6 +40,7 @@ describe('Admin Add New Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('[data-test="admin-menu-section-new-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-new-title"]').click();

cy.get('a[data-test="menu.section.new_item"]').click();
Expand Down
9 changes: 6 additions & 3 deletions cypress/e2e/admin-edit-modals.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ describe('Admin Edit Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('#admin-menu-section-edit-title').click();
cy.get('[data-test="admin-menu-section-edit-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-edit-title"]').click();

cy.get('a[data-test="menu.section.edit_community"]').click();

Expand All @@ -25,7 +26,8 @@ describe('Admin Edit Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('#admin-menu-section-edit-title').click();
cy.get('[data-test="admin-menu-section-edit-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-edit-title"]').click();

cy.get('a[data-test="menu.section.edit_collection"]').click();

Expand All @@ -38,7 +40,8 @@ describe('Admin Edit Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('#admin-menu-section-edit-title').click();
cy.get('[data-test="admin-menu-section-edit-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-edit-title"]').click();

cy.get('a[data-test="menu.section.edit_item"]').click();

Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/admin-export-modals.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ describe('Admin Export Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('#admin-menu-section-export-title').click();
cy.get('[data-test="admin-menu-section-export-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-export-title"]').click();

cy.get('a[data-test="menu.section.export_metadata"]').click();

Expand All @@ -25,7 +26,8 @@ describe('Admin Export Modals', () => {
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
cy.get('#admin-menu-section-export-title').click();
cy.get('[data-test="admin-menu-section-export-title"]').should('be.visible');
cy.get('[data-test="admin-menu-section-export-title"]').click();

cy.get('a[data-test="menu.section.export_batch"]').click();

Expand Down

0 comments on commit 5623cc9

Please sign in to comment.