-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2750 from 4Science/DURACOM-191
Migration to standalone components
- Loading branch information
Showing
1,782 changed files
with
18,638 additions
and
12,294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { Options } from 'cypress-axe'; | ||
import { testA11y } from 'cypress/support/utils'; | ||
import { Options } from 'cypress-axe'; | ||
|
||
describe('Admin Sidebar', () => { | ||
beforeEach(() => { | ||
// Must login as an Admin for sidebar to appear | ||
cy.visit('/login'); | ||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); | ||
}); | ||
beforeEach(() => { | ||
// Must login as an Admin for sidebar to appear | ||
cy.visit('/login'); | ||
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD')); | ||
}); | ||
|
||
it('should be pinnable and pass accessibility tests', () => { | ||
// Pin the sidebar open | ||
cy.get('#sidebar-collapse-toggle').click(); | ||
it('should be pinnable and pass accessibility tests', () => { | ||
// Pin the sidebar open | ||
cy.get('#sidebar-collapse-toggle').click(); | ||
|
||
// Click on every expandable section to open all menus | ||
cy.get('ds-expandable-admin-sidebar-section').click({multiple: true}); | ||
// Click on every expandable section to open all menus | ||
cy.get('ds-expandable-admin-sidebar-section').click({ multiple: true }); | ||
|
||
// Analyze <ds-admin-sidebar> for accessibility | ||
testA11y('ds-admin-sidebar', | ||
// Analyze <ds-admin-sidebar> for accessibility | ||
testA11y('ds-admin-sidebar', | ||
{ | ||
rules: { | ||
// Currently all expandable sections have nested interactive elements | ||
// See https://github.com/DSpace/dspace-angular/issues/2178 | ||
'nested-interactive': { enabled: false }, | ||
} | ||
rules: { | ||
// Currently all expandable sections have nested interactive elements | ||
// See https://github.com/DSpace/dspace-angular/issues/2178 | ||
'nested-interactive': { enabled: false }, | ||
}, | ||
} as Options); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { testA11y } from 'cypress/support/utils'; | ||
|
||
describe('Breadcrumbs', () => { | ||
it('should pass accessibility tests', () => { | ||
// Visit an Item, as those have more breadcrumbs | ||
cy.visit('/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'))); | ||
it('should pass accessibility tests', () => { | ||
// Visit an Item, as those have more breadcrumbs | ||
cy.visit('/entities/publication/'.concat(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'))); | ||
|
||
// Wait for breadcrumbs to be visible | ||
cy.get('ds-breadcrumbs').should('be.visible'); | ||
// Wait for breadcrumbs to be visible | ||
cy.get('ds-breadcrumbs').should('be.visible'); | ||
|
||
// Analyze <ds-breadcrumbs> for accessibility | ||
testA11y('ds-breadcrumbs'); | ||
}); | ||
// Analyze <ds-breadcrumbs> for accessibility | ||
testA11y('ds-breadcrumbs'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { testA11y } from 'cypress/support/utils'; | ||
|
||
describe('Browse By Author', () => { | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/author'); | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/author'); | ||
|
||
// Wait for <ds-browse-by-metadata-page> to be visible | ||
cy.get('ds-browse-by-metadata').should('be.visible'); | ||
// Wait for <ds-browse-by-metadata-page> to be visible | ||
cy.get('ds-browse-by-metadata').should('be.visible'); | ||
|
||
// Analyze <ds-browse-by-metadata-page> for accessibility | ||
testA11y('ds-browse-by-metadata'); | ||
}); | ||
// Analyze <ds-browse-by-metadata-page> for accessibility | ||
testA11y('ds-browse-by-metadata'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { testA11y } from 'cypress/support/utils'; | ||
|
||
describe('Browse By Date Issued', () => { | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/dateissued'); | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/dateissued'); | ||
|
||
// Wait for <ds-browse-by-date-page> to be visible | ||
cy.get('ds-browse-by-date').should('be.visible'); | ||
// Wait for <ds-browse-by-date-page> to be visible | ||
cy.get('ds-browse-by-date').should('be.visible'); | ||
|
||
// Analyze <ds-browse-by-date-page> for accessibility | ||
testA11y('ds-browse-by-date'); | ||
}); | ||
// Analyze <ds-browse-by-date-page> for accessibility | ||
testA11y('ds-browse-by-date'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { testA11y } from 'cypress/support/utils'; | ||
|
||
describe('Browse By Subject', () => { | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/subject'); | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/subject'); | ||
|
||
// Wait for <ds-browse-by-metadata-page> to be visible | ||
cy.get('ds-browse-by-metadata').should('be.visible'); | ||
// Wait for <ds-browse-by-metadata-page> to be visible | ||
cy.get('ds-browse-by-metadata').should('be.visible'); | ||
|
||
// Analyze <ds-browse-by-metadata-page> for accessibility | ||
testA11y('ds-browse-by-metadata'); | ||
}); | ||
// Analyze <ds-browse-by-metadata-page> for accessibility | ||
testA11y('ds-browse-by-metadata'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { testA11y } from 'cypress/support/utils'; | ||
|
||
describe('Browse By Title', () => { | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/title'); | ||
it('should pass accessibility tests', () => { | ||
cy.visit('/browse/title'); | ||
|
||
// Wait for <ds-browse-by-title-page> to be visible | ||
cy.get('ds-browse-by-title').should('be.visible'); | ||
// Wait for <ds-browse-by-title-page> to be visible | ||
cy.get('ds-browse-by-title').should('be.visible'); | ||
|
||
// Analyze <ds-browse-by-title-page> for accessibility | ||
testA11y('ds-browse-by-title'); | ||
}); | ||
// Analyze <ds-browse-by-title-page> for accessibility | ||
testA11y('ds-browse-by-title'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.