Skip to content

Commit

Permalink
Ensure admin menu e2e tests hover over admin menu before clicking on …
Browse files Browse the repository at this point in the history
…it. Attempt to stabilize tests which open this menu.
  • Loading branch information
tdonohue committed Jan 22, 2025
1 parent b08edf1 commit 5c50faa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 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 @@ -9,6 +9,7 @@ describe('Admin Add New Modals', () => {

it('Add new Community modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand All @@ -23,6 +24,7 @@ describe('Admin Add New Modals', () => {

it('Add new Collection modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand All @@ -37,6 +39,7 @@ describe('Admin Add New Modals', () => {

it('Add new Item modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand Down
3 changes: 3 additions & 0 deletions cypress/e2e/admin-edit-modals.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('Admin Edit Modals', () => {

it('Edit Community modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand All @@ -23,6 +24,7 @@ describe('Admin Edit Modals', () => {

it('Edit Collection modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand All @@ -37,6 +39,7 @@ describe('Admin Edit Modals', () => {

it('Edit Item modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/admin-export-modals.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('Admin Export Modals', () => {

it('Export metadata modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand All @@ -23,6 +24,7 @@ describe('Admin Export Modals', () => {

it('Export batch modal should pass accessibility tests', () => {
// Pin the sidebar open
cy.get('[data-test="sidebar-collapse-toggle"]').trigger('mouseover');
cy.get('[data-test="sidebar-collapse-toggle"]').click();

// Click on entry of menu
Expand Down

0 comments on commit 5c50faa

Please sign in to comment.