mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00

Admin Add New Modals Admin Edit Modals Admin Export Modals Admin Workflow Page End User Agreement Feedback Profile Page System Wide Alert
19 lines
673 B
TypeScript
19 lines
673 B
TypeScript
import { testA11y } from 'cypress/support/utils';
|
|
|
|
describe('Admin Workflow Page', () => {
|
|
beforeEach(() => {
|
|
// Must login as an Admin to see the page
|
|
cy.visit('/admin/workflow');
|
|
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
|
|
});
|
|
|
|
it('should pass accessibility tests', () => {
|
|
// Page must first be visible
|
|
cy.get('ds-admin-workflow-page').should('be.visible');
|
|
// At least one search result should be displayed
|
|
cy.get('[data-test="list-object"]').should('be.visible');
|
|
// Analyze <ds-admin-workflow-page> for accessibility issues
|
|
testA11y('ds-admin-workflow-page');
|
|
});
|
|
});
|