Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16189

TC-186: Deleted products still appears in the "Whishlist"

    XMLWordPrintable

Details

    Description

      When we create a product, add it to wishlist and the delete the same product, it still appears on the whishlist (in the dashboard).

      Steps to reproduce

      To execute this test, some actions must be made:

      In command mode in linux:
      vi .run/settings/dashboard.ini
      Uncheck the comment sign "#" on the lines:
      DashboardBlocks[]=wishlist
      [DashboardBlock_wishlist]
      Priority=60
      NumberOfItems=10
      PolicyList[]=shop/buy

      Setup
      1. Log into Admin as Admin
      2. Click on "Setup" tab on top of menu
      3. On left side menu, click on link "Classes"
      4. On "Class Groups", click on "Content"
      5. Click on "New class" button
      6. Insert the following Data:
      Name: Class Products 186
      Identifier: Class Products 186
      Description: <name>
      7. On attributes combo box, choose "Text line" and press "Add attribute" button
      8. Insert the following Data:
      Name: Title
      Identifier: TitleDescription: <name>
      Required: Checked
      9. On attributes combo-box, choose "Price"
      10. Press "Add attribute" button
      11. Enter the following data:
      12. Name: Price
      13. Identifier: Price
      14. Description: <name>
      15. Required: Checked
      16. Press "OK" button

      Create 11 products and add them to Whishlist
      1. Create 11 products and add them to Whishlist as defined in the following group steps (Change the sufix number to respective number from 1 to 11)
      2. Click on "Content structure" tab on top menu
      3. On the combo-box bellow Sub Items group, choose "Class Products 186" and press "Create here" button
      4. Enter the following data:
      5. Title: Products 186_1
      6. Price: 10
      7. Press "Send for Publishing" button
      8. Click on "Content structure" tab on top menu
      9. On "Sub items" list, click on Product 186_1 link
      10. Click on "Add to wish list" button

      Check Products in Wishlist
      1. Click on "Dashboard" tab on top menu
      2. Check that there are 10 products on the wishlist (by default)
      3. Check that, for each product, the following information and action are displayed:
      Name of the content
      Class of the content
      Date
      Action link to view the content
      Action link to edit the content

      Change the default number of items to be viewed in the Wishlist
      1. Logout
      2. Open a linux session
      3. Make the following commands
      cd /var/www/apache2php52/trunk
      vi ./run/settings/dashboard.ini
      4. In the vi editor, remove the coment caracter "#" in the following lines:
      [DashboardBlock_wishlist]
      Priority=60
      NumberOfItems=10
      PolicyList[]=shop/buy
      5. Change the whish list items to apperar to 20: NumberOfItems=20
      6. Save the dashbard.ini file
      7. Log in in Admin as Admin
      8. Click on "Dashboard" tab on top menu
      9. check that we can see all the 11 articles of Whishlist
      10. Change the whish list items to apperar to 10: NumberOfItems=10

      Remove a Product from Contents
      1. Click on "Content structure" tab on top menu
      2. On "sub items" group, check the product "Product 186_4"
      3. Press the "Remove selected" button
      4. On the Confirm local remove, press "OK" button
      5. Click on "Dashboard" tab on top menu
      6. Check that the "Product 186_4" is no longer on the wishlist

      ------Note: The product 186_4 was removed and still appears on the Whishlist

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcardiga pcardiga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: