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

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

    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"

        Activity

        Hide
        Vidar Langseid added a comment -

        Tested once more with latest version.
        It works better, but not yet 100%

        Seems to still be small cache issue because all validations after steps like "Click "Choose" button" fails. However, when I exit the style editor, the results are expected. So in short: there seems to be some cache issue which results in that the page is not refreshed inside the style editor when changing styles

        Show
        Vidar Langseid added a comment - Tested once more with latest version. It works better, but not yet 100% Seems to still be small cache issue because all validations after steps like "Click "Choose" button" fails. However, when I exit the style editor, the results are expected. So in short: there seems to be some cache issue which results in that the page is not refreshed inside the style editor when changing styles
        Hide
        Łukasz Serwatka added a comment -

        Fixed in trunk

        Show
        Łukasz Serwatka added a comment - Fixed in trunk
        Hide
        Vidar Langseid added a comment -

        I still get the issue explained in comment #264254.

        It fails in both FF and IE8

        Show
        Vidar Langseid added a comment - I still get the issue explained in comment #264254. It fails in both FF and IE8
        Hide
        Vidar Langseid added a comment -

        Yes, this works now

        Show
        Vidar Langseid added a comment - Yes, this works now
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            Łukasz Serwatka
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: