This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
forked from adobe/brackets
-
Notifications
You must be signed in to change notification settings - Fork 0
Brackets Smoke Tests
Narciso Jaramillo edited this page Sep 10, 2013
·
76 revisions
Brackets has a pretty good automated test suite that you can run from Debug > Run Tests, but that doesn't always cover issues with the overall UI and intetegrated functionality, or visual/layout issues that are only obvious if you're actually looking at the product. This is a set of manual tests intended to make sure we haven't broken the basic overall workflows of the product. The intention is to keep it quick--if it takes more than 5 minutes on a given platform it's too long.
There are also Brackets server smoke tests.
If you have trouble running through it or something is unclear, please post to the brackets-dev mailing list.
- Make sure your
git status
is clean and your user extensions folder andsrc/extensions/dev
folders are both empty (git status will not tell you about these folders). - Quit and relaunch Chrome if it's open (so it's not in remote debugger mode).
- If you've run the smokes previously, revert any changes you might have made in
brackets/test/smokes/citrus completed
. - Delete your cache folder (Mac:
~/Library/Application\ Support/Brackets/cef_data
, Win:%appdata%\Brackets\cef_data
). - Disable any 3rd party extensions you've installed extension folder (Mac:
~/Library/Application\ Support/Brackets/extensions/user
, Win:%appdata%\Brackets\extensions\user
)
- Launch Brackets. Verify that the Brackets "Getting Started" folder is visible in the project panel and its index.html file is opened automatically.
- File > Open Folder and browse to the Brackets source folder.
- Click on the double-triangle next to the project name. The dropdown should show the "Getting Started" folder and an "Open Folder..." option
- Switch back to the "Getting Started" folder using the project dropdown, verifying that it switches back to the previous project and shows its index.html.
- Switch back to the "brackets" folder using the project dropdown.
- Expand some folders in the brackets project, enough that it has to scroll.
- Scroll around in the folder area. Verify that the shadows look right (appears at top when not scrolled all the way to the top) and there are no visual glitches.
- From the Finder/Explorer window, drag the
brackets/test/smokes/citrus completed
folder onto Brackets (note that there's a space in the name; this is intentional). In the Project panel, verify that the folder opened and it contains "css" and "images" folders and an "index.html" file. - From the Finder/Explorer window, drag the
brackets/test/smokes/citrus completed/index.html
file onto Brackets. Verify that the file is opened, selected, and added to the working set. - File > New
- File > Save, name the file
temp.js
in the current project. Verify that the name in the working set and title bar changes totemp.js
and the mode in the status bar changes to "JavaScript". - Type the following code
var foo = "", bar = function(){};
foo.
- Verify
String
method code hints onfoo
- Insert a new line 2
foo = bar;
- On line 3, verify
Function
method code hints onfoo
- In the project tree, right-click on
temp.js
and choose "Rename". Rename the file totemp.txt
. Verify that the name in the working set and title bar changes, the code coloring disappears and the mode changes to "Text". - In the project tree, right click on
temp.txt
and choose delete (when prompted discard changes) - Open the OS Trash/Recycle Bin and confirm
temp.txt
was deleted - Verify that index.html is now current file. Move mouse over the name of the source of an
<img>
tag (e.g. "images/events.jpg" on line 33). Verify that Hover Preview of the image is displayed properly with the width and height. - Set the cursor in the
<body>
tag immediately before the>
. - Enter a space. Verify that a list of attribute hints pops up and you can navigate the list with up/down arrow key.
- Hit Esc key to dismiss the code hints list, then delete the space so the cursor is after the "y" of "body".
- Hit Cmd/Ctrl-E. Verify that it shows a single body rule and that everything is laid out properly.
- In the native shell menu, choose View > Increase Font Size. Verify both the host and inline editors font size increases. The inline editor should not show a vertical scrollbar.
- Click the lightning bolt in the upper right. If you trashed prefs, you'll get an info dialog explaining how live preview works. Hit OK.
- You should see the page load in Chrome.
- On Mac, you should get a dialog saying you need to relaunch Chrome. Click "Relaunch". Chrome should relaunch and open the page.
- Back in Brackets, on line 26, put the cursor after "A new" and type
and totally <em>AWESOME</em> local
; let the<em>
tag autocomplete (you can arrow or click select after the</em>
to typelocal
). Verify that everything appears as you type, except that nothing updates while you type<em
, and verify that AWESOME is italicized (and nothing else is). - Undo the file back to a clean state. Verify that as you undo, the HTML preview continues to match the current state of the document, and ends up looking the same as when you first opened the file.
- Edit the background color for the tag in the inline editor (#D90 is a nice color). Verify that the color changes in Chrome as you type. Also verify that the CSS file is added to the working set with the dirty bit set.
- Hit Cmd/Ctrl-E. Verify that the inline editor closes.
- Put the cursor after the
<a
in one of the navbar items and hit Cmd/Ctrl-E to open another inline editor. - Scroll up and down in the outer editor. Verify that the inline editor scrolls properly with the editor.
- Resize the window. Verify that the rule list moves properly and there are no visual glitches.
- Hit Esc to close the inline editor.
- File > Extension Manager, Install from URL..., and install the Emmet extension using the GitHub URL
https://github.com/emmetio/brackets-emmet
- Verify the Emmet menu was added
- Quit the app. Verify that you get a "save changes" dialog for any CSS files you edited through the inline editor, and choose to discard the changes.
- Restart the app. Verify that the "citrus completed" project shows in the sidebar, and that the working set and current editor are showing the same files as when you quit. Also verify that the changes you had previously made were reverted (
git status
in the smokes folder should show clean).