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

Added Consumable UI tests #15965

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

marcusmoore
Copy link
Collaborator

This PR adds more tests around the UI for consumables.

@marcusmoore marcusmoore requested a review from snipe as a code owner December 13, 2024 00:43
Copy link

what-the-diff bot commented Dec 13, 2024

PR Summary

  • View Reference Updated in ConsumablesController.php
    The way we tell the system to display the edit view for consumables has been updated to ensure more reliability and consistency.

  • Addition of CreateConsumableTest.php
    We've added comprehensive testing for creating consumables. This ensures that only authorized users can create consumables, the creation page can properly be displayed, and consumables can be successfully created.

  • Addition of DeleteConsumableTest.php
    A new testing functionality called DeleteConsumableTest.php has been added. The aim of this test is to check that the permissions are correctly set up for deleting consumables, to make sure that consumables cannot be deleted across different companies, and validate that the system works correctly when deleting consumables.

  • Addition of UpdateConsumableTest.php
    We introduced a new test for updating consumables. This test ensures that only those with the correct permissions can edit consumables, and that changes cannot be made to consumables owned by a different company. It checks the successful updating of quantity values and validates the successful update of consumables.

@snipe snipe merged commit 0984194 into snipe:develop Dec 19, 2024
9 checks passed
@marcusmoore marcusmoore deleted the testing/consumable-ui branch December 19, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants