Skip to content

Code snippet is not added to collection #17

@mohsenkhosroanjam

Description

@mohsenkhosroanjam

Description:
As a user, I can add a snippet to a collection.

Actual result:
When I add a snippet to a collection, the snippet will not be added to the collection.

Expected result:
When the user adds a snippet to a collection, the snippet should be added to the collection.

Steps to reproduce:
There are two flows to add a snippet to a collection:
Flow1:
1- Go to https://codecandy.suraniharsh.codes/collections and create a collection
2- Then, go to https://codecandy.suraniharsh.codes/
3- Click on "New Snippet" button
4- While you are creating the snippet, choose your collection
5- Click on "Create Snippet" button
6- Then, go to https://codecandy.suraniharsh.codes/collections and click on your collection
You can see that the snippet that you have created and added to the collection is not there.

Flow2:
1- Go to https://codecandy.suraniharsh.codes/collections and create a collection
2- Click on your collection and then click on "Add your first snippet"
3- Create a snippet using the form
After you have done the above steps, the snippet will not be added to the collection. There is no button to make this snippet your favorite one.

Screenshots:
Flow 1:

Image **************************************************************************************************

Flow 2:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixFor issues that involve bug fixes, layout adjustments, or functionality corrections in the project.hacktoberfest

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions