Skip to content

Instantly share code, notes, and snippets.

@junyper
Last active August 29, 2015 14:25
Show Gist options
  • Save junyper/7481e6a2b65a1b799bad to your computer and use it in GitHub Desktop.
Save junyper/7481e6a2b65a1b799bad to your computer and use it in GitHub Desktop.
cnvs-21425-scenarios.md

Note: All scenarios require the new styles feature enabled.

Global Includes Disabled

  1. Disable the Global JS/CSS includes setting at the domain account level
  2. Verify that the Upload tab does not appear in the theme editor

Global Includes Enabled

  1. Enable the Global JS/CSS includes setting at the domain account level
  2. Verify that the Upload tab appears in the theme editor

Canvas Default (Undo)

  1. Start with a canvas default theme
  2. Select a JS or CSS file in the Upload tab
  3. Verify that the 'Preview' button appears and the file name is displayed
  4. Click the 'Undo' button (reset icon) to remove the file
  5. Verify that the 'Preview' button disappears and the file name is removed

Canvas Default (Clear not yet applied)

  1. Start with a canvas default theme
  2. Select a JS or CSS file in the Upload tab
  3. Click the 'Preview' button
  4. Verify that the url to the file appears in the Upload tab and the CSS or JS has been applied to the page
  5. Click the 'Clear' button (x icon) to remove the file
  6. Verify that the url is removed and the 'Preview' button appears
  7. Click the 'Undo' button (reset icon) to reset the url
  8. Verify that the url is displayed again and the 'Preview' button does NOT appear
  9. Click the 'Clear' button to remove the file again
  10. Click 'Preview'
  11. Verify that the CSS or JS is no longer applied to the page and the input is not populated on the Upload tab

Canvas Default (Clear when applied)

  1. Start with a canvas default theme
  2. Select a JS or CSS file in the Upload tab
  3. Preview and Apply
  4. Verify that the JS or CSS has been applied to the page
  5. Go back to the Theme editor
  6. Verify that the url to the CSS or JS file displays in the Upload tab
  7. Click 'Clear' (x icon) in the Upload tab
  8. Verify that the url does not display
  9. Click 'Preview' (url should not appear)
  10. Click 'Apply'
  11. Verify that the CSS or JS file is not applied to the page (url should not appear in the theme editor)

Custom Theme (not applied)

  1. Start with the canvas default theme and set some brand colors and/or images
  2. Upload a JS or CSS file and verify 'Preview', 'Apply', 'Clear' functionality as above (make sure that custom colors/images are applied)

Custom Theme (applied)

  1. Start with a custom theme (brand colors and/or images selected and applied to the account)
  2. Upload a JS or CSS file and verify 'Preview', 'Apply', 'Clear' functionality as above (make sure that custom theme isn't affected)

JS and CSS

  1. Upload both JS and CSS files and verify 'Preview', 'Apply', 'Undo', 'Clear' functionality as above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment