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

Allow to add product with 0.00 price #374

Merged
merged 2 commits into from
Oct 4, 2013

Conversation

amenophis
Copy link
Contributor

No description provided.

@amenophis
Copy link
Contributor Author

@pjedrzejewski Is it the good way ?

@@ -46,12 +46,6 @@ Feature: Product variants
When I press "Create"
Then I should see "Variant with this option set already exists."

Scenario: Trying to create product variant with invalid price
Given I am creating variant of "Black T-Shirt"
When I fill in "Price" with "0.00"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe replace "0.00" with string like "invalid price" or something similar to keep this scenario instead just removing it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be removed definitely. Why not just checking if the price is not negative? So change the validation to minimum 0.00, and enter negative amount in the scenario.

@amenophis
Copy link
Contributor Author

Is is better ?

@pjedrzejewski
Copy link
Member

Yeah! Let's wait for travis. :)

@amenophis
Copy link
Contributor Author

Green 👍

pjedrzejewski pushed a commit that referenced this pull request Oct 4, 2013
Allow to add product with 0.00 price
@pjedrzejewski pjedrzejewski merged commit 0d904b3 into Sylius:master Oct 4, 2013
@pjedrzejewski
Copy link
Member

Thank you Jeremy!

pamil pushed a commit to pamil/Sylius that referenced this pull request Mar 21, 2016
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.

None yet

3 participants