mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Ensure admin menu e2e tests hover over admin menu before clicking on it. Attempt to stabilize tests which open this menu.
(cherry picked from commit e9cd0f4c64
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
b11543c3a5
commit
e3f13f8c54
@@ -9,6 +9,7 @@ describe('Admin Add New Modals', () => {
|
|||||||
|
|
||||||
it('Add new Community modal should pass accessibility tests', () => {
|
it('Add new Community modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
@@ -23,6 +24,7 @@ describe('Admin Add New Modals', () => {
|
|||||||
|
|
||||||
it('Add new Collection modal should pass accessibility tests', () => {
|
it('Add new Collection modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
@@ -37,6 +39,7 @@ describe('Admin Add New Modals', () => {
|
|||||||
|
|
||||||
it('Add new Item modal should pass accessibility tests', () => {
|
it('Add new Item modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
|
@@ -9,6 +9,7 @@ describe('Admin Edit Modals', () => {
|
|||||||
|
|
||||||
it('Edit Community modal should pass accessibility tests', () => {
|
it('Edit Community modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
@@ -23,6 +24,7 @@ describe('Admin Edit Modals', () => {
|
|||||||
|
|
||||||
it('Edit Collection modal should pass accessibility tests', () => {
|
it('Edit Collection modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
@@ -37,6 +39,7 @@ describe('Admin Edit Modals', () => {
|
|||||||
|
|
||||||
it('Edit Item modal should pass accessibility tests', () => {
|
it('Edit Item modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
|
@@ -9,6 +9,7 @@ describe('Admin Export Modals', () => {
|
|||||||
|
|
||||||
it('Export metadata modal should pass accessibility tests', () => {
|
it('Export metadata modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
@@ -23,6 +24,7 @@ describe('Admin Export Modals', () => {
|
|||||||
|
|
||||||
it('Export batch modal should pass accessibility tests', () => {
|
it('Export batch modal should pass accessibility tests', () => {
|
||||||
// Pin the sidebar open
|
// Pin the sidebar open
|
||||||
|
cy.get('#sidebar-collapse-toggle').trigger('mouseover');
|
||||||
cy.get('#sidebar-collapse-toggle').click();
|
cy.get('#sidebar-collapse-toggle').click();
|
||||||
|
|
||||||
// Click on entry of menu
|
// Click on entry of menu
|
||||||
|
Reference in New Issue
Block a user