Skip to content

Commit

Permalink
[CST-15592] add interceptor for edit group, fix landmark-unique acces…
Browse files Browse the repository at this point in the history
…sibility issue in pagination component
  • Loading branch information
FrancescoMolinaro committed Oct 9, 2024
1 parent 55ab43f commit 2b466bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cypress/e2e/edit-group.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ describe('Edit Group', () => {
// Must login as an Admin to see the page
cy.visit('/access-control/groups/'.concat(Cypress.env('DSPACE_ADMINISTRATOR_GROUP')).concat('/edit'));
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
// Wait for all search components to be loaded
cy.intercept('GET', '/server/api/eperson/groups/'.concat(Cypress.env('DSPACE_ADMINISTRATOR_GROUP').concat('/subgroups*'))).as('subGroups');
cy.wait('@subGroups');
});

it('should pass accessibility tests', () => {
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/pagination/pagination.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

<div *ngIf="shouldShowBottomPager | async">
<div *ngIf="showPaginator" class="pagination justify-content-center clearfix bottom">
<ngb-pagination [boundaryLinks]="paginationOptions.boundaryLinks"
<ngb-pagination [attr.aria-label]="('pagination-control.page-number-bar' | translate) + paginationOptions.id"
[boundaryLinks]="paginationOptions.boundaryLinks"
[collectionSize]="collectionSize"
[disabled]="paginationOptions.disabled"
[ellipses]="paginationOptions.ellipses"
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,8 @@

"pagination.next.button.disabled.tooltip": "No more pages of results",

"pagination.page-number-bar": "Control bar for page navigation, relative to element with ID: ",

"browse.startsWith": ", starting with {{ startsWith }}",

"browse.startsWith.choose_start": "(Choose start)",
Expand Down

0 comments on commit 2b466bb

Please sign in to comment.