Skip to content

Commit

Permalink
Cypress tests for invitation based user creation pkp/pkp-lib#9658
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Nov 23, 2024
1 parent d977572 commit 7a04af7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions cypress/tests/data/10-ApplicationSetup/40-CreateUsers.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,8 @@ describe('Data suite tests', function() {
}
]
users.forEach(user => {
cy.createUser(user);
cy.createUserByInvitation(user);
});
cy.logout();
var user = users[0];
if (!('email' in user)) user.email = user.username + '@mailinator.com';
if (!('password' in user)) user.password = user.username + user.username;

cy.login(user.username);
cy.resetPassword(user.username, user.password);
cy.logout();
});
})
2 changes: 1 addition & 1 deletion lib/pkp
Submodule pkp updated 56 files
+0 −1 api/v1/submissions/PKPSubmissionController.php
+0 −1 classes/context/SubEditorsDAO.php
+7 −0 classes/core/PKPApplication.php
+30 −9 classes/core/PKPContainer.php
+1 −2 classes/core/PKPRequest.php
+0 −1 classes/decision/DecisionType.php
+17 −1 classes/i18n/Locale.php
+1 −1 classes/invitation/invitations/userRoleAssignment/handlers/UserRoleAssignmentInviteRedirectController.php
+1 −1 classes/mail/mailables/AnnouncementNotify.php
+1 −1 classes/mail/mailables/EditorialReminder.php
+2 −2 classes/navigationMenu/NavigationMenuItem.php
+2 −2 classes/notification/NotificationManagerDelegate.php
+2 −2 classes/notification/PKPNotificationOperationManager.php
+0 −1 classes/notification/managerDelegate/AnnouncementNotificationManager.php
+0 −1 classes/notification/managerDelegate/EditorAssignmentNotificationManager.php
+0 −1 classes/notification/managerDelegate/EditorDecisionNotificationManager.php
+0 −1 classes/notification/managerDelegate/EditorialReportNotificationManager.php
+0 −1 classes/notification/managerDelegate/PKPApproveSubmissionNotificationManager.php
+1 −6 classes/notification/managerDelegate/PKPEditingProductionStatusNotificationManager.php
+0 −1 classes/observers/listeners/AssignEditors.php
+0 −1 classes/query/Repository.php
+0 −1 classes/submission/action/EditorAction.php
+0 −1 classes/submission/reviewer/form/PKPReviewerReviewStep3Form.php
+1 −13 controllers/grid/navigationMenus/form/NavigationMenuForm.php
+3 −6 controllers/grid/navigationMenus/form/PKPNavigationMenuItemsForm.php
+0 −1 controllers/grid/queries/QueriesGridHandler.php
+0 −1 controllers/grid/queries/QueryNotesGridHandler.php
+0 −1 controllers/grid/users/reviewer/form/EditReviewForm.php
+0 −2 controllers/grid/users/stageParticipant/form/PKPStageParticipantNotifyForm.php
+0 −1 jobs/email/EditorialReminder.php
+0 −1 jobs/email/ReviewReminder.php
+0 −1 jobs/invitations/RemoveExpiredInvitationsJob.php
+4 −1 jobs/notifications/NewAnnouncementNotifyUsers.php
+0 −1 jobs/notifications/StatisticsReportMail.php
+1 −1 pages/invitation/InvitationHandler.php
+67 −8 tests/PKPTestCase.php
+77 −0 tests/jobs/bulk/BulkEmailSenderTest.php
+100 −0 tests/jobs/doi/DepositContextTest.php
+179 −0 tests/jobs/doi/DepositSubmissionTest.php
+215 −0 tests/jobs/email/EditorialReminderTest.php
+55 −0 tests/jobs/invitations/RemoveExpiredInvitationsJobTest.php
+109 −0 tests/jobs/metadata/BatchMetadataChangedJobTest.php
+109 −0 tests/jobs/metadata/MetadataChangedJobTest.php
+162 −0 tests/jobs/notifications/NewAnnouncementNotifyUsersTest.php
+169 −0 tests/jobs/notifications/StatisticsReportMailTest.php
+92 −0 tests/jobs/notifications/StatisticsReportNotifyTest.php
+131 −0 tests/jobs/statistics/ArchiveUsageStatsLogFileTest.php
+66 −0 tests/jobs/statistics/CompileContextMetricsTest.php
+79 −0 tests/jobs/statistics/CompileMonthlyMetricsTest.php
+66 −0 tests/jobs/statistics/CompileSubmissionMetricsTest.php
+66 −0 tests/jobs/statistics/RemoveDoubleClicksTest.php
+67 −0 tests/jobs/submissions/RemoveSubmissionFileFromSearchIndexJobTest.php
+67 −0 tests/jobs/submissions/RemoveSubmissionFromSearchIndexJobTest.php
+ tests/jobs/submissions/UpdateSubmissionSearchJobTest.php
+1 −1 tests/phpunit.xml
+88 −0 tests/support/DoiRegistrationAgency.php
2 changes: 1 addition & 1 deletion lib/ui-library

0 comments on commit 7a04af7

Please sign in to comment.