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

StyleEditor : Saving and restoring site styles doesn't work correctly

    XMLWordPrintable

Details

    Description

      Hi

      Trying the saving and restoring of styles. The defects are listed inline in the testcase

      Steps to reproduce
      Setup
         1. Log in as admin in ezwebin
         2. Create a article named "Test article"
              The article should also contain a header1 "This is header 1"
         3. View the article
         4. Click "CSS" button in toolbar
      
      Setup - Create a Style
         1. Click "Styles" in the StyleEditor's top menu
         2. Write "Red" in the input field and click "Create" button
         3. Click in the radiobutton next to "Red" (in the list)
         4. Click "Choose" button
      
      Make H1 headers red
         1. Click "Elements"->"Header 1" in the StyleEditor's top menu
         2. Select Font -> color in the drop down
         3. Click "Add" button
         4. Select some red color using the drop down
         5. Click "Save" button
      
      Select the default style
         1. Click "Styles" in the StyleEditor's top menu
         2. Click in the radiobutton next to "New style" (in the list)
         3. Click "Choose" button
         4. Validate that the "Test article" header turns black again
             **This step fails
         5. Exit the style edtor by clicking the "Exit" button in the StyleEditor's top menu
         6. Validate that the "Test article" header is black
      
      Select the "Red" style
         1. Click "CSS" button in toolbar
         2. Click "Styles" in the StyleEditor's top menu
         3. Click in the radiobutton next to "Red" (in the list)
         4. Click "Choose" button
         5. Validate that the "Test article" header turns red
             **This step fails
         6. Exit the style editor by clicking the "Exit" button in the StyleEditor's top menu
         7. Validate that the "Test article" header is red
      
      Make "Header 2" also red
         1. Click "CSS" button in toolbar
         2. Click "Elements"->"Header 2" in the StyleEditor's top menu
         3. Select Font -> color in the drop down
         4. Click "Add" button
         5. Select some red color using the drop down
         6. Click "Save" button
         7. Exit the style editor by clicking the "Exit" button in the StyleEditor's top menu
         8. Validate that the "Test article" header is red
         9. Validate that the "This is header 1" header is red
      
      Restore version 1 of the "Red" style
         1. Click "CSS" button in toolbar
         2. Click "Styles" in the StyleEditor's top menu
         3. Click the "Version list" button
         4. Select version 1
         5. Click the Restore button
             **This step fails. Nothing happens when you press the button, the dialog doesn't close....
         6. Click the Choose button
         7. Validate that the "Test article" header is red
             **Not tested yet as step #5 fails
         8. Validate that the "This is header 1" header is black
             **Not tested yet as step #5 fails
         9. Exit the style edtor by clicking the "Exit" button in the StyleEditor's top menu
             **Not tested yet as step #5 fails
        10. Validate that the "Test article" header is red
             **Not tested yet as step #5 fails
        11. Validate that the "This is header 1" header is black
             **Not tested yet as step #5 fails
      

      Edit : Fixed error in test case, changed:
      "4. Select version 2" into "4. Select version 1"

      Attachments

        Activity

          People

            ls ls
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: