Skip to content

Test #739

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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Test #739

wants to merge 4 commits into from

Conversation

MouramChafik
Copy link

✅ PR Checklist

Please check if your PR fulfills the following requirements:

Tests for the changes have been added (for bug fixes / features)
🚀 PR Type

What kind of change does this PR introduce?

Bugfix
Feature
Code style update (formatting, local variables)
Refactoring (no functional changes, no api changes)
Build related changes
CI related changes
Other... Please describe:
🤔 What is the current behavior?

Currently, the product creation form in the admin dashboard was not covered by automated end-to-end tests.

Issue Number: N/A

🎉 What is the new behavior?

This PR adds a Selenium-based test (test_create_product) which:

Logs into the admin interface.
Navigates to the product creation form.
Fills out required fields.
Selects a category from a modal.
Uploads a product image.
Verifies that the image is displayed.
⚠️ Does this PR introduce a breaking change?

Yes
No

📎 Other information

Selenium test includes dynamic image upload and category selection modal interaction.
Ensure the test image path exists on your local machine or update image_path accordingly in the test file.

@MouramChafik MouramChafik reopened this Jun 9, 2025
@MouramChafik
Copy link
Author

Great work on this PR! 🎉

The end-to-end test for product creation is well-structured and covers all critical interactions:

Admin login
Product form inputs
Modal category selection
Image upload and validation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant