diff --git a/cypress/integration/submission-ui.spec.ts b/cypress/integration/submission-ui.spec.ts index cc8e28dc019..5b819980388 100644 --- a/cypress/integration/submission-ui.spec.ts +++ b/cypress/integration/submission-ui.spec.ts @@ -416,52 +416,6 @@ describe('Create a new submission', () => { createItemProcess.checkAuthorLastnameField(); }); - it('should show warning messages if was selected non-supported license', { - retries: { - runMode: 6, - openMode: 6, - }, - defaultCommandTimeout: 10000 - },() => { - createItemProcess.checkLicenseResourceStep(); - // check default value in the license dropdown selection - createItemProcess.checkLicenseSelectionValue('Select a License ...'); - // check step status - it should be as warning - createItemProcess.checkResourceLicenseStatus('Warnings'); - // select `Select a License ...` from the selection - this license is not supported - createItemProcess.selectValueFromLicenseSelection('Select a License ...'); - // selected value should be seen as selected value in the selection - createItemProcess.checkLicenseSelectionValue('Select a License ...'); - // check step status - it should an error - createItemProcess.checkResourceLicenseStatus('Errors'); - // error messages should be popped up - createItemProcess.showErrorMustChooseLicense(); - createItemProcess.showErrorNotSupportedLicense(); - }); - - it('the submission should have the Notice Step', { - retries: { - runMode: 6, - openMode: 6, - }, - defaultCommandTimeout: 10000 - },() => { - createItemProcess.checkLicenseResourceStep(); - // check default value in the license dropdown selection - createItemProcess.checkLicenseSelectionValue('Select a License ...'); - // check step status - it should be as warning - createItemProcess.checkResourceLicenseStatus('Warnings'); - // select `Select a License ...` from the selection - this license is not supported - createItemProcess.selectValueFromLicenseSelection('Select a License ...'); - // selected value should be seen as selected value in the selection - createItemProcess.checkLicenseSelectionValue('Select a License ...'); - // check step status - it should an error - createItemProcess.checkResourceLicenseStatus('Errors'); - // error messages should be popped up - createItemProcess.showErrorMustChooseLicense(); - createItemProcess.showErrorNotSupportedLicense(); - }); - it('The submission should not have the Notice Step', { retries: { runMode: 6, diff --git a/src/app/clarin-licenses/clarin-license-table-pagination.ts b/src/app/clarin-licenses/clarin-license-table-pagination.ts index baa89242836..23f18a655df 100644 --- a/src/app/clarin-licenses/clarin-license-table-pagination.ts +++ b/src/app/clarin-licenses/clarin-license-table-pagination.ts @@ -10,8 +10,8 @@ export const paginationID = 'cLicense'; // pageSize: 200; get all licenses export const defaultPagination = Object.assign(new PaginationComponentOptions(), { id: paginationID, - currentPage: 0, - pageSize: 200 + currentPage: 1, + pageSize: 10 }); export const defaultSortConfiguration = new SortOptions('', SortDirection.DESC); diff --git a/src/app/clarin-licenses/clarin-license-table/clarin-license-table.component.html b/src/app/clarin-licenses/clarin-license-table/clarin-license-table.component.html index 5a582b667c3..afc5e3c1ef3 100644 --- a/src/app/clarin-licenses/clarin-license-table/clarin-license-table.component.html +++ b/src/app/clarin-licenses/clarin-license-table/clarin-license-table.component.html @@ -1,4 +1,15 @@