Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to standalone components #2750

Merged
merged 333 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
333 commits
Select commit Hold shift + click to select a range
995752a
fix JournalVolumeSearchResultListElementComponent tests
enea4science Sep 28, 2023
444c35d
fix GroupFormComponent tests
enea4science Sep 28, 2023
ca4fdae
fix ItemEditBitstreamComponent tests
enea4science Sep 28, 2023
5086eaa
fix ProfileClaimItemModalComponent tests
enea4science Sep 28, 2023
5dfd812
fix ItemPageComponent tests
enea4science Sep 28, 2023
c133ff7
fix CollectionSourceComponent tests
enea4science Sep 28, 2023
52da1e0
fix OrcidSyncSettingsComponent tests
enea4science Sep 28, 2023
63fcd40
fix JournalSearchResultListElementComponent tests
enea4science Sep 28, 2023
945491b
fix CollectionCurateComponent tests
enea4science Sep 28, 2023
9e2842f
fix ItemAuthorizationsComponent tests
enea4science Sep 28, 2023
2a88c87
fix BrowseByTaxonomyPageComponent tests
enea4science Sep 28, 2023
18ee751
fix DsDynamicLookupRelationExternalSourceTabComponent tests
enea4science Sep 28, 2023
35aadf7
fix JournalVolumeListElementComponent tests
enea4science Sep 28, 2023
7d96c90
fix CollectionAuthorizationsComponent tests
enea4science Sep 28, 2023
69e5b03
fix JournalVolumeSearchResultListElementComponent tests
enea4science Sep 28, 2023
f86de22
fix ItemGridElementComponent tests
enea4science Sep 28, 2023
08c22f9
fix SubmissionSectionSherpaPoliciesComponent tests
enea4science Sep 28, 2023
3806584
fix NumberPickerComponent tests
enea4science Sep 28, 2023
35e967e
fix MetadataFieldFormComponent tests
enea4science Sep 28, 2023
01c28a3
fix ItemPageAuthorFieldComponent tests
enea4science Sep 28, 2023
4374f28
fix ThumbnailComponent tests
enea4science Sep 28, 2023
7447b64
fix JournalIssueComponent tests
enea4science Sep 28, 2023
5ba3bb2
fix MetadataRepresentationListComponent tests
enea4science Sep 28, 2023
840bad0
fix SubmissionFormCollectionComponent tests
enea4science Sep 28, 2023
4c2c5af
fix CommunityListComponent tests
enea4science Sep 28, 2023
a353ac1
fix ProjectSearchResultListElementComponent tests
enea4science Sep 28, 2023
bfe529e
fix ProcessDetailComponent tests
enea4science Sep 28, 2023
e232a7d
fix BitstreamAuthorizationsComponent tests
enea4science Sep 28, 2023
3cf3cc8
small fixes
enea4science Sep 28, 2023
d4d0fe0
Unit test fixes
alisaismailati Nov 1, 2023
7938900
[DURACOM-191] unit test fix
vNovski Dec 4, 2023
9be8254
[DURACOM-191] fix: section-license unit-tests
vNovski Dec 4, 2023
5b9250a
[DURACOM-191] fix: listable-object-loader tests
vNovski Dec 6, 2023
8a7b459
[DURACOM-191] fix: unit-tests
vNovski Dec 8, 2023
1f15b21
[DURACOM-191] align with main branch and migrated to be standalone ne…
vNovski Dec 11, 2023
391ae16
[DURACOM-191] fix linting
Dec 13, 2023
30a9a95
[DURACOM-191] fix browse-by-date-page.component.spec.ts
Dec 13, 2023
1b158dd
[DURACOM-191] fix various tests
Dec 13, 2023
63521f0
Revert "[DURACOM-191] fix various tests"
Dec 14, 2023
bdf1855
Revert "[DURACOM-191] fix browse-by-date-page.component.spec.ts"
Dec 14, 2023
4c1f488
[DURACOM-191] fix various tests
Dec 14, 2023
e262bca
[DURACOM-191] fix header component imports
Dec 14, 2023
96c0e12
[DURACOM-191] fix epeople-registry test
Dec 14, 2023
e1001d4
[DURACOM-191] fix collection-access-control component test
Dec 14, 2023
ae452b3
[DURACOM-191] fix community-access-control component test
Dec 14, 2023
ca5cca3
[DURACOM-191] fix item-access-control component test
Dec 14, 2023
113d95d
[DURACOM-191] fix item-access-control-select-bitstreams-modal compone…
Dec 18, 2023
5872222
[DURACOM-191] fix some tests, find broken assertions
Dec 18, 2023
f5e767a
[DURACOM-191] fix a test in dynamic-relation-group component
Dec 19, 2023
6804ef1
[DURACOM-191] fix: dynamic-relation-group unit tests
vNovski Dec 19, 2023
59c30c5
[DURACOM-191] fix tests in section-upload-file-edit component
Dec 19, 2023
3a461ee
Merge branch 'main' into DURACOM-191-20231219-ALIGNMENT
Dec 20, 2023
8b665a6
[DURACOM-191] run angular script for migration
Dec 20, 2023
fb979f0
[DURACOM-191] fix process-form tests
Dec 20, 2023
9474fcd
[DURACOM-191] fix admin-quality-assurance-events-page test
Dec 20, 2023
20780fa
[DURACOM-191] fix import
Dec 20, 2023
4850856
[DURACOM-191] fix parameter-select.component tests
Dec 20, 2023
e98d0de
[DURACOM-191] quality-assurance-source tests
Dec 20, 2023
84ea720
[DURACOM-191] quality-assurance-topics tests
Dec 20, 2023
9001649
[DURACOM-191] fix admin-quality-assurance-topics-page tests
Dec 20, 2023
d389e66
[DURACOM-191] fix admin-quality-assurance-source-page tests
Dec 20, 2023
75b8c09
[DURACOM-191] fix project-entry-import-modal tests
Dec 20, 2023
a833639
[DURACOM-191] fix configuration-search-page tests
Dec 20, 2023
031e12f
[DURACOM-191] fix root component tests
Dec 20, 2023
ac366bc
[DURACOM-191] remove SharedModule
Jan 9, 2024
ba3bea8
[DURACOM-191] set providers in core folder
Jan 9, 2024
6e70aad
[DURACOM-191] change routing for home-page, delete home-page.module.ts
Jan 10, 2024
d1e986a
[DURACOM-191] change routing for community-list-page, delete communit…
Jan 10, 2024
a2d66c6
[DURACOM-191] change routing for community-list-page
Jan 10, 2024
d73fc0f
[DURACOM-191] change routing for register-page, delete register-page.…
Jan 10, 2024
1145c01
[DURACOM-191] change routing for forgot-password, delete forgot-passw…
Jan 10, 2024
4d5d1ec
[DURACOM-191] change routing for community-page, delete community-pag…
Jan 10, 2024
4b84c35
[DURACOM-191] change routing for collection-page
Jan 10, 2024
5ade030
[DURACOM-191] change routing for item-page
Jan 10, 2024
df85f8f
[DURACOM-191] change routing for bitstream-page
Jan 10, 2024
737f035
[DURACOM-191] change routing for my-dspace-page
Jan 10, 2024
6692eb8
[DURACOM-191] change routing for search-page
Jan 10, 2024
dcaac9e
[DURACOM-191] change routing for browse-by-page
Jan 10, 2024
6136d5d
[DURACOM-191] change routing for admin-page
Jan 10, 2024
dae3659
[DURACOM-191] change routing for login-page
Jan 10, 2024
fe23afe
[DURACOM-191] change routing for logout-page
Jan 10, 2024
d6795c2
[DURACOM-191] change routing for submit-page
Jan 10, 2024
5c0ceab
[DURACOM-191] change routing for import-external-page
Jan 10, 2024
43241a2
[DURACOM-191] change routing for workspaceitems-edit-page
Jan 10, 2024
ca09cfb
[DURACOM-191] change routing for workflowitems-edit-page
Jan 10, 2024
7f3739f
[DURACOM-191] change routing for profile-page
Jan 10, 2024
6aefab1
[DURACOM-191] change routing for process-page
Jan 10, 2024
2ca8990
[DURACOM-191] change routing for info
Jan 10, 2024
e6d1765
[DURACOM-191] change routing for request-copy
Jan 10, 2024
13f5a7f
[DURACOM-191] change routing for statistics-page
Jan 10, 2024
6159c22
[DURACOM-191] change routing for health-page
Jan 10, 2024
db16930
[DURACOM-191] change routing for access-control
Jan 10, 2024
2d879bd
[DURACOM-191] change routing for subscriptions-page
Jan 10, 2024
a3fefc2
fix tests
Jan 11, 2024
3c829ca
[DURACOM-191] fix typo
Jan 11, 2024
0e52113
[DURACOM-191] fix services not loading
Jan 11, 2024
c3a2b89
[DURACOM-191] fix store declaration
Jan 11, 2024
6313d42
[DURACOM-191] fix core store imports
Jan 12, 2024
061ff51
[DURACOM-191] fix item submission
Jan 12, 2024
9cce553
[DURACOM-191] remove unused decorator
Jan 15, 2024
b43e873
[DURACOM-191] fix wrong component declaration
Jan 15, 2024
4cab7a3
[DURACOM-191] fix missing root provider
Jan 15, 2024
2d3c5ce
[DURACOM-191] set static map for menu-item decorator
Jan 15, 2024
6b82742
[DURACOM-191] fix defer not being solved
Jan 15, 2024
e7be512
[DURACOM-191] set map for login methods
Jan 15, 2024
e95a27b
[DURACOM-191] refactor menu-item.decorator.ts
Jan 15, 2024
cbae8b4
[DURACOM-191] refactor sections-decorator.ts
Jan 15, 2024
a913630
[DURACOM-191] set map for starts-with decorator
Jan 15, 2024
09c070e
[DURACOM-191] set map for workflow actions
Jan 16, 2024
0fb34e9
[DURACOM-191] set map for menu section
Jan 16, 2024
076482e
[DURACOM-191] set map for search filters
Jan 16, 2024
091395a
[DURACOM-191] set map for browse by
Jan 16, 2024
b61720c
[DURACOM-191] fix section map
Jan 17, 2024
89705d8
[DURACOM-191] fix menu item map
Jan 17, 2024
bf6b303
[DURACOM-191] create listable.module
Jan 17, 2024
d6bf788
[DURACOM-191] delete provide-listable-objects.ts
Jan 17, 2024
a348be5
[DURACOM-191] fix tests of non-standalone components
Jan 17, 2024
f0b094e
[DURACOM-191] fix lint errors
atarix83 Jan 17, 2024
65e5ec8
[DURACOM-191] fix tests
atarix83 Jan 17, 2024
579bedc
[DURACOM-191] fix tests
Jan 18, 2024
4d23626
[DURACOM-191] fix lint
Jan 18, 2024
93853ba
[DURACOM-191] fix missing listable components
Jan 18, 2024
2538169
[DURACOM-191] remove provide-render-browse-by, use exported const ins…
Jan 18, 2024
e287e25
[DURACOM-191] add withEntryComponents() to listable.module.ts
Jan 18, 2024
bb64be3
[DURACOM-191] remove provide-render-auth-method, use exported const i…
Jan 18, 2024
171e0e3
[DURACOM-191] fix circular dependencies
atarix83 Jan 18, 2024
8861a21
[DURACOM-191] fix circular dependencies
atarix83 Jan 19, 2024
891f18d
[DURACOM-191] remove leftover provide files, use exported consts instead
Jan 19, 2024
8e3a145
Merge remote-tracking branch 'github/DURACOM-191' into DURACOM-191
Jan 19, 2024
cfe8020
[DURACOM-191] fix circular dependencies
atarix83 Jan 19, 2024
59e9e0f
Merge remote-tracking branch 'github/DURACOM-191' into DURACOM-191
Jan 19, 2024
31f89e8
[DURACOM-191] fix errors
Jan 19, 2024
d63caf5
Merge branch 'main' into DURACOM-191
Jan 19, 2024
47a257e
[DURACOM-191] add deprecated in jsdocs for decorators
Jan 19, 2024
4716a3c
[DURACOM-191] fix unit test with missing providers
atarix83 Jan 19, 2024
107e960
Merge remote-tracking branch 'github/DURACOM-191' into DURACOM-191
Jan 19, 2024
4322bca
[DURACOM-191] add deprecated comment
Jan 19, 2024
3eb91a0
Merge branch 'main' into DURACOM-191
Jan 19, 2024
c3b31f0
[DURACOM-191] fix missing import after merge
Jan 22, 2024
2a5fd4e
[DURACOM-191] fix tests after merge
Jan 22, 2024
b53f5a1
[DURACOM-191] fix edit item relationships
Jan 23, 2024
1afec99
Merge branch 'main' into DURACOM-191
Jan 24, 2024
4ecfdf2
[DURACOM-191] fix missing imports and providers
Jan 24, 2024
dc8d3ac
Merge branch 'main' into DURACOM-191
Feb 1, 2024
16bd9b1
[DURACOM-191] fix tests
Feb 1, 2024
9ead6f5
[DURACOM-191] fix missing imports
Feb 2, 2024
576f262
[DURACOM-238] add missing imports in standalone component
Feb 27, 2024
914ca68
Merge remote-tracking branch 'github/main' into DURACOM-191-20240304-…
Mar 4, 2024
5a57035
[DURACOM-191] merge fixes
Mar 4, 2024
8503b4a
[DURACOM-191] run migration script
Mar 4, 2024
923c375
[DURACOM-191] add more fixes
Mar 4, 2024
5ec649f
[DURACOM-191] fix routing modules
Mar 5, 2024
0f97fc3
[DURACOM-191] fix routing modules
Mar 5, 2024
ad1a3e6
[DURACOM-191] fix routing module
Mar 5, 2024
e5d7f11
[DURACOM-191] fix missing import
Mar 5, 2024
344cbf1
[DURACOM-191] run migration script
Mar 5, 2024
7b3571e
[DURACOM-191] make section-coar-notify standalone
Mar 5, 2024
8bfb776
[DURACOM-191] fix standalone components
Mar 5, 2024
36edc58
[DURACOM-191] migrate components to standalone
Mar 5, 2024
9cd1db5
[DURACOM-191] fix browse-by-decorator map
Mar 5, 2024
c5730e5
[DURACOM-191] fix build errors
Mar 5, 2024
a38f96d
[DURACOM-191] delete useless modules
Mar 5, 2024
59cb88e
[DURACOM-191] fix build errors
Mar 5, 2024
92c944a
[DURACOM-191] run migration script
Mar 5, 2024
3a5f9cd
[DURACOM-191] fix circular dependencies
Mar 6, 2024
a8b4c82
[DURACOM-191] fix errors at runtime
Mar 6, 2024
19f806c
[DURACOM-191] fix dynamicComponentLoader
Mar 7, 2024
a147f78
[DURACOM-191] fix errors at runtime
Mar 8, 2024
dbbf992
[DURACOM-191] delete core module
Mar 8, 2024
a9c975b
[DURACOM-191] fix runtime errors for store features
Mar 8, 2024
cc8d931
[DURACOM-191] fix missing pipe in createReportMenuSections
Mar 8, 2024
ae436fb
[DURACOM-191] remove already present strings
Mar 8, 2024
f90880b
[DURACOM-191] Fix error on home when coar is not enabled
atarix83 Mar 8, 2024
fe23ac6
Merge remote-tracking branch 'github/main' into DURACOM-191-20240311-…
Mar 12, 2024
ee265f8
[DURACOM-191] run optimize imports and lint fix
Mar 12, 2024
3029802
[DURACOM-191] fix lint errors manually and automatically
Mar 12, 2024
4fde89e
[DURACOM-191] fix wrong imports
Mar 13, 2024
06f8aa0
[DURACOM-191] fix build errors
Mar 13, 2024
0ff19db
[DURACOM-191] convert components to standalone
Mar 13, 2024
98b1565
[DURACOM-191] fix some test errors
Mar 13, 2024
e03f68d
[DURACOM-191] Refactoring in order to remove nested subscriptions
atarix83 Mar 13, 2024
44c608c
[DURACOM-191] Remove access-control.module
atarix83 Mar 13, 2024
8b4eede
[DURACOM-191] Remove admin-notify-dashboard.module
atarix83 Mar 13, 2024
e5ed336
[DURACOM-191] Remove admin-ldn-services.module
atarix83 Mar 13, 2024
8c435be
[DURACOM-191] Remove admin-reports.module
atarix83 Mar 13, 2024
08aef91
Merge remote-tracking branch '4scienceGithub/DURACOM-191' into DURACO…
atarix83 Mar 13, 2024
1e2fabb
[DURACOM-191] Fix lint
atarix83 Mar 13, 2024
5edef2d
[DURACOM-191] Fix issue with migration to standalone components
atarix83 Mar 13, 2024
2cabfc7
[DURACOM-191] Remove lookup-by-id.module
atarix83 Mar 13, 2024
11a2170
[DURACOM-191] Remove google-recaptcha.module
atarix83 Mar 13, 2024
464d793
[DURACOM-191] fix tests
Mar 13, 2024
5ff7b8c
[DURACOM-191] Remove my-dspace-page.module and fix missing imports
atarix83 Mar 13, 2024
eb23033
[DURACOM-191] add provided in root
atarix83 Mar 13, 2024
2840a42
[DURACOM-191] Remove browse-by-page.module
atarix83 Mar 13, 2024
a29c603
[DURACOM-191] Remove item-page.module
atarix83 Mar 13, 2024
054a3d5
[DURACOM-191] Remove edit-item-page.module and item-versions.module.ts
atarix83 Mar 13, 2024
e153ca3
[DURACOM-191] Remove navbar.module
atarix83 Mar 13, 2024
9d0db66
[DURACOM-191] fix test
Mar 14, 2024
3d871b2
[DURACOM-191] fix test
Mar 14, 2024
0a0b9ea
[DURACOM-191] fix test
Mar 14, 2024
d2f64d9
[DURACOM-191] fix untyped-item.component test
Mar 14, 2024
e4ea7d3
[DURACOM-191] fix footer.component test
Mar 14, 2024
0d1bd06
[DURACOM-191] fix notify-info.service test
Mar 14, 2024
4e69eed
[DURACOM-191] fix workspace-item-search-result-detail-element.compone…
Mar 14, 2024
2473a27
[DURACOM-191] fix qa-event-notification.component test
Mar 14, 2024
6ef5d7e
[DURACOM-191] fix some tests
Mar 14, 2024
268bdb4
[DURACOM-191] fix some tests
Mar 14, 2024
0b78b04
[DURACOM-191] move data services to map
Mar 14, 2024
981597c
[DURACOM-191] fix some tests
Mar 14, 2024
cb44f0a
[DURACOM-191] Remove register-email-form.module, form.module, shared-…
atarix83 Mar 14, 2024
5d21510
Merge remote-tracking branch '4scienceGithub/DURACOM-191' into DURACO…
atarix83 Mar 14, 2024
a364cd8
[DURACOM-191] Remove menu.module, resource-policies.module and search…
atarix83 Mar 14, 2024
c8ae352
[DURACOM-191] fix some tests
Mar 14, 2024
e630b6c
[DURACOM-191] Remove subscriptions-page.module, subscriptions.module.…
atarix83 Mar 14, 2024
88bcbfc
[DURACOM-191] Remove statistics-page.module and statistics.module
atarix83 Mar 14, 2024
c6cdb99
[DURACOM-191] Remove submission.module
atarix83 Mar 14, 2024
f0a0e38
[DURACOM-191] fix some tests
Mar 14, 2024
653de28
[DURACOM-191] Remove system-wide-alert.module
atarix83 Mar 14, 2024
e73e95e
[DURACOM-191] fix some tests and remaining decorator to be removed
Mar 14, 2024
f244ea7
[DURACOM-191] Fix missing import
atarix83 Mar 14, 2024
d72c284
[DURACOM-191] Remove app-routing.module
atarix83 Mar 14, 2024
56fc0a7
Merge remote-tracking branch '4scienceGithub/DURACOM-191' into DURACO…
atarix83 Mar 14, 2024
87552ce
Merge remote-tracking branch 'github/DURACOM-191' into DURACOM-191
Mar 14, 2024
1a14f3f
[DURACOM-191] fix some tests
Mar 14, 2024
4faa4ab
[DURACOM-191] fix metadata-import-page.component tests
Mar 14, 2024
748febd
[DURACOM-191] Provide resolver in root
atarix83 Mar 14, 2024
f53d829
[DURACOM-191] remove providers already provided in root
atarix83 Mar 14, 2024
524f202
Merge remote-tracking branch '4scienceGithub/DURACOM-191' into DURACO…
atarix83 Mar 14, 2024
762fcee
[DURACOM-191] optimize application states providers
atarix83 Mar 14, 2024
f29e70d
[DURACOM-191] Remove duplicated route path definition
atarix83 Mar 15, 2024
5fc2ed9
[DURACOM-191] fix some tests
Mar 15, 2024
fb47c96
Merge remote-tracking branch '4scienceGithub/DURACOM-191' into DURACO…
atarix83 Mar 15, 2024
f527810
[DURACOM-191] Fix tests
atarix83 Mar 15, 2024
788e44a
[DURACOM-191] Fix circular dependency
atarix83 Mar 17, 2024
2e88177
[DURACOM-191] Fix tests
atarix83 Mar 17, 2024
0047913
[DURACOM-191] Add missing data service
atarix83 Mar 17, 2024
8409853
[DURACOM-191] Clean up suggestions-data.service implementation
atarix83 Mar 18, 2024
58512b6
[DURACOM-191] Fix test
atarix83 Mar 18, 2024
7472e69
[DURACOM-191] Fix dso-edit-metadata.component which still used getDat…
atarix83 Mar 18, 2024
8c55e89
[DURACOM-191] Fix eperson-group-list.component which still used getDa…
atarix83 Mar 18, 2024
b28f99f
[DURACOM-191] Fix resource-policy-target.resolver which still used ge…
atarix83 Mar 18, 2024
acfcf51
[DURACOM-191] Remove DataService decorator
atarix83 Mar 18, 2024
5b6c174
[DURACOM-191] Fix withdrawn-reinstate-modal
atarix83 Mar 18, 2024
41c62e2
[DURACOM-191] Fix batch import page
atarix83 Mar 18, 2024
ddd0131
[DURACOM-191] Fix submission-import-external-preview.component
atarix83 Mar 18, 2024
dfad3f3
[DURACOM-191] Fix issue with admin workflow page
atarix83 Mar 18, 2024
2826ff5
[DURACOM-191] Fix missing import for ngIf and ngFor directive
atarix83 Mar 19, 2024
bcf8383
[DURACOM-191] Fix issue with edit relationship page
atarix83 Mar 20, 2024
8529257
[DURACOM-191] Fix selected tab for the comcol-page-browse-by.component
atarix83 Mar 20, 2024
6704a39
[DURACOM-191] Provide routing option properly
atarix83 Mar 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
}
],
"@angular-eslint/no-attribute-decorator": "error",
"@angular-eslint/no-forward-ref": "error",
"@angular-eslint/no-output-native": "warn",
"@angular-eslint/no-output-on-prefix": "warn",
"@angular-eslint/no-conflicting-lifecycle": "warn",
Expand Down
38 changes: 19 additions & 19 deletions cypress/e2e/admin-sidebar.cy.ts
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);
});
});
});
16 changes: 8 additions & 8 deletions cypress/e2e/breadcrumbs.cy.ts
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');
});
});
14 changes: 7 additions & 7 deletions cypress/e2e/browse-by-author.cy.ts
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');
});
});
14 changes: 7 additions & 7 deletions cypress/e2e/browse-by-dateissued.cy.ts
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');
});
});
14 changes: 7 additions & 7 deletions cypress/e2e/browse-by-subject.cy.ts
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');
});
});
14 changes: 7 additions & 7 deletions cypress/e2e/browse-by-title.cy.ts
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');
});
});
138 changes: 69 additions & 69 deletions cypress/e2e/collection-edit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,126 +3,126 @@ import { testA11y } from 'cypress/support/utils';
const COLLECTION_EDIT_PAGE = '/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')).concat('/edit');

beforeEach(() => {
// All tests start with visiting the Edit Collection Page
cy.visit(COLLECTION_EDIT_PAGE);
// All tests start with visiting the Edit Collection Page
cy.visit(COLLECTION_EDIT_PAGE);

// This page is restricted, so we will be shown the login form. Fill it out & submit.
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
// This page is restricted, so we will be shown the login form. Fill it out & submit.
cy.loginViaForm(Cypress.env('DSPACE_TEST_ADMIN_USER'), Cypress.env('DSPACE_TEST_ADMIN_PASSWORD'));
});

describe('Edit Collection > Edit Metadata tab', () => {
it('should pass accessibility tests', () => {
// <ds-edit-collection> tag must be loaded
cy.get('ds-edit-collection').should('be.visible');
it('should pass accessibility tests', () => {
// <ds-edit-collection> tag must be loaded
cy.get('ds-edit-collection').should('be.visible');

// Analyze <ds-edit-collection> for accessibility issues
testA11y('ds-edit-collection');
});
// Analyze <ds-edit-collection> for accessibility issues
testA11y('ds-edit-collection');
});
});

describe('Edit Collection > Assign Roles tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="roles"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="roles"]').click();

// <ds-collection-roles> tag must be loaded
cy.get('ds-collection-roles').should('be.visible');
// <ds-collection-roles> tag must be loaded
cy.get('ds-collection-roles').should('be.visible');

// Analyze for accessibility issues
testA11y('ds-collection-roles');
});
// Analyze for accessibility issues
testA11y('ds-collection-roles');
});
});

describe('Edit Collection > Content Source tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="source"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="source"]').click();

// <ds-collection-source> tag must be loaded
cy.get('ds-collection-source').should('be.visible');
// <ds-collection-source> tag must be loaded
cy.get('ds-collection-source').should('be.visible');

// Check the external source checkbox (to display all fields on the page)
cy.get('#externalSourceCheck').check();
// Check the external source checkbox (to display all fields on the page)
cy.get('#externalSourceCheck').check();

// Wait for the source controls to appear
// cy.get('ds-collection-source-controls').should('be.visible');
// Wait for the source controls to appear
// cy.get('ds-collection-source-controls').should('be.visible');

// Analyze entire page for accessibility issues
testA11y('ds-collection-source');
});
// Analyze entire page for accessibility issues
testA11y('ds-collection-source');
});
});

describe('Edit Collection > Curate tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="curate"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="curate"]').click();

// <ds-collection-curate> tag must be loaded
cy.get('ds-collection-curate').should('be.visible');
// <ds-collection-curate> tag must be loaded
cy.get('ds-collection-curate').should('be.visible');

// Analyze for accessibility issues
testA11y('ds-collection-curate');
});
// Analyze for accessibility issues
testA11y('ds-collection-curate');
});
});

describe('Edit Collection > Access Control tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="access-control"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="access-control"]').click();

// <ds-collection-access-control> tag must be loaded
cy.get('ds-collection-access-control').should('be.visible');
// <ds-collection-access-control> tag must be loaded
cy.get('ds-collection-access-control').should('be.visible');

// Analyze for accessibility issues
testA11y('ds-collection-access-control');
});
// Analyze for accessibility issues
testA11y('ds-collection-access-control');
});
});

describe('Edit Collection > Authorizations tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="authorizations"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="authorizations"]').click();

// <ds-collection-authorizations> tag must be loaded
cy.get('ds-collection-authorizations').should('be.visible');
// <ds-collection-authorizations> tag must be loaded
cy.get('ds-collection-authorizations').should('be.visible');

// Analyze for accessibility issues
testA11y('ds-collection-authorizations');
});
// Analyze for accessibility issues
testA11y('ds-collection-authorizations');
});
});

describe('Edit Collection > Item Mapper tab', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="mapper"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="mapper"]').click();

// <ds-collection-item-mapper> tag must be loaded
cy.get('ds-collection-item-mapper').should('be.visible');
// <ds-collection-item-mapper> tag must be loaded
cy.get('ds-collection-item-mapper').should('be.visible');

// Analyze entire page for accessibility issues
testA11y('ds-collection-item-mapper');
// Analyze entire page for accessibility issues
testA11y('ds-collection-item-mapper');

// Click on the "Map new Items" tab
cy.get('li[data-test="mapTab"] a').click();
// Click on the "Map new Items" tab
cy.get('li[data-test="mapTab"] a').click();

// Make sure search form is now visible
cy.get('ds-search-form').should('be.visible');
// Make sure search form is now visible
cy.get('ds-search-form').should('be.visible');

// Analyze entire page (again) for accessibility issues
testA11y('ds-collection-item-mapper');
});
// Analyze entire page (again) for accessibility issues
testA11y('ds-collection-item-mapper');
});
});


describe('Edit Collection > Delete page', () => {

it('should pass accessibility tests', () => {
cy.get('a[data-test="delete-button"]').click();
it('should pass accessibility tests', () => {
cy.get('a[data-test="delete-button"]').click();

// <ds-delete-collection> tag must be loaded
cy.get('ds-delete-collection').should('be.visible');
// <ds-delete-collection> tag must be loaded
cy.get('ds-delete-collection').should('be.visible');

// Analyze for accessibility issues
testA11y('ds-delete-collection');
});
// Analyze for accessibility issues
testA11y('ds-delete-collection');
});
});
14 changes: 7 additions & 7 deletions cypress/e2e/collection-page.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { testA11y } from 'cypress/support/utils';

describe('Collection Page', () => {

it('should pass accessibility tests', () => {
cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')));
it('should pass accessibility tests', () => {
cy.visit('/collections/'.concat(Cypress.env('DSPACE_TEST_COLLECTION')));

// <ds-collection-page> tag must be loaded
cy.get('ds-collection-page').should('be.visible');
// <ds-collection-page> tag must be loaded
cy.get('ds-collection-page').should('be.visible');

// Analyze <ds-collection-page> for accessibility issues
testA11y('ds-collection-page');
});
// Analyze <ds-collection-page> for accessibility issues
testA11y('ds-collection-page');
});
});
Loading
Loading