LimeSurvey: master 16eb9cfb

Author Committer Branch Timestamp Parent
ollehar GitHub master 2023-12-14 13:05 master 96e400ad
Changeset

LA-12/unit-tests-for-new-user-status-column (03663)

  • Check that new users have user_status = 1 after being created

  • Make it impossible to deactivate user id 1

  • Make it possible to skip wait in admin login (unit test)

  • Add ob_start to unit test bootstrap to avoid session error

  • Add new test file for user status feature

  • Add id to GridActionsWidget and dropdown menu ul

  • Add findManyByCss() to web driver subclass

  • Finish testCannotDeactiveSuperadmin

  • WIP new test

  • Add uid class to td so it can be found in unit-test

  • Finish new test testCanDeactivateNewUser

  • Wait for modal in test

  • Factor out waitById() in test

  • Add helper function clickByCss

  • Add id edit-status for massive action in user management

  • Add new test testMassiveActionDeactivate

  • Use this->renderPartial instead of calling global App object (better for unit test)

  • Add new test class UserStatusControllerTest to unit test controller without Selenium

  • Add some comments

  • Add comment to ob_start line

  • Remove todo that has been implemented

mod - application/controllers/UserManagementController.php Diff File
mod - application/extensions/admin/grid/GridActionsWidget/GridActionsWidget.php Diff File
mod - application/extensions/admin/grid/GridActionsWidget/views/action_dropdown.php Diff File
mod - application/models/User.php Diff File
mod - application/views/userManagement/massiveAction/_selector.php Diff File
mod - tests/LimeSurveyWebDriver.php Diff File
mod - tests/TestBaseClassWeb.php Diff File
mod - tests/bootstrap.php Diff File
add - tests/functional/acceptance/19201-user-status/UserStatusControllerTest.php Diff File
add - tests/functional/acceptance/19201-user-status/UserStatusTest.php Diff File
mod - tests/functional/backend/UserManagementTest.php Diff File