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 simple front end render tests #15976

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Conversation

marcusmoore
Copy link
Collaborator

This PR adds a bunch of simple tests that make sure (some of) the application's routes that return views render without exception. These will provide a bit of a safety net for upcoming front end changes.

Copy link

what-the-diff bot commented Dec 17, 2024

PR Summary

  • Added 'permissions' field: The 'permissions' field has been introduced into the 'GroupFactory.php' file. This new field starts as an empty JSON array.

  • Added new tests: New tests have been implemented to evaluate the correct visualization of various website pages, such as accessory, asset, category pages, etc. These tests strive to ensure the correct functioning of these pages and main features.

  • Introduced company-related tests: These new tests ensure that company-specific pages like 'Index', 'Edit', 'Show' are loading and functioning correctly.

  • Included component-related tests: Newly added tests are specifically checking the 'Edit' and 'Show' functionalities of components on the website.

  • Organizational structure improvements: New test files have been included to make the codebase structure more organized. Each new file covers a separate feature, ensuring thorough and isolated testing of individual functionalities.

  • Namespace Correction: For the 'DepreciationsIndexTest.php' file, the namespace has been fixed from 'Tests\Feature\Categories\Ui' to 'Tests\Feature\Depreciations\Ui'.

  • Expanded testing scope: Added numerous tests, each checking if their respective pages (create, show, edit, index) are displaying correctly. This leads to a wider coverage of the website's functionalities.

  • Added Page Render Tests: Included 'testPageRenders()' function in multiple existing testing classes. This function makes sure that pages are loading correctly, which is crucial for a smooth user experience.

  • Feature Test Instances: Each new class initializes a user with comprehensive permissions, aiming to test access to specific routes. This is important in evaluating access management across the platform.

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

Successfully merging this pull request may close these issues.

2 participants