QA/Jetpack/AddonBuilderTestPlan/Testcases: Difference between revisions
< QA | Jetpack | AddonBuilderTestPlan
Jump to navigation
Jump to search
Line 48: | Line 48: | ||
**<b>You should be able to edit the name of the Lib(module) by clicking on the pencil like button besides the name.</b> | **<b>You should be able to edit the name of the Lib(module) by clicking on the pencil like button besides the name.</b> | ||
**<b>The revision should also be updated when you edit the name of the lib(module)</b> | **<b>The revision should also be updated when you edit the name of the lib(module)</b> | ||
**<b>You should be able to edit the name of the Data(attachments) by clicking on the pencil like button besides the name.</b> | |||
**<b>The revision should also be updated when you edit the name of the attachment</b> | |||
*Manual(in-litmus): | *Manual(in-litmus): |
Revision as of 21:17, 31 January 2011
LEGEND:
Black = Done
Red = Pending
Blue = Blocker
Following are the test cases for the Add-on builder.
Home Page
- Automated:
- User should be able to login to add-on builder through the Sign-in button on the home page. The Dashboard should be displayed.
- If the user is already logged in, the "My account" link on the top of the page should navigate the user to the dashboard.
- User should be able to go to create add-on/create libraries page from the dropdown at the top of the page, after he is authenticated.
- User should be redirected to the add-on editor page when clicked on the create add-on button, after he is authenticated.
- User should be redirected to the library text editor page when they click on "Create Library" button.
- All links on the home page should be clickable and redirected to the proper page.
- When the user is not logged in,the home page should only show the "Test" and "Source" buttons(enabled).
- For the add-ons created by other users, only "Test" and "Source" buttons should be visible to the current user.
- For the libraries created by other users, only "Source" button should be visible to the current user.
- "Disable" button should be shown on the home page to the user for the add-ons/libraries that have been created by them.(user needs to be logged in)
- Manual(in-litmus):
- Latest Jetpack SDK should be downloaded when the user clicks on the "Download Add-ons builder SDK"
Editor Page
- This page has two phases for Add-ons and Libraries:
- View
- Edit
- Automated:
- When in Edit mode, the add-on editor should have Six buttons: "Test", "Download", "Save", "Copy", "Revision", "Properties".(change)
- When in View mode, the add-on editor should have Five buttons: "Test", "Download", "Copy", "Revision", "Properties".(change)
- When in Edit mode, the library editor should have "Save", "Copy", "Revision", "Properties" buttons.
- When in View mode, the library editor should have "Copy", "Revision", "Properties" buttons.
- Clicking on Copy button should create a fresh new package with the copied contents from the original package.
- The user should be able to add/remove Lib(modules) and Plugins(libraries) and the list of libs/plugins should be updated.
- The revision should change when the user adds/removes Lib(modules).
- The total number of modules should be displayed in the modules section.
- The "Revision" button should display all the revisions that have been recorded for that add-on.
- The information of the current add-on can be edited by clicking the "Properties" button on the editor. (Note:You should be in the edit mode for this to work.)
- You should *NOT* be able to change the information of the add-on in view source mode.(The Properties button should just display information and no editable fields)
- A new revision should be generated when the user saves after making changes to the existing addon code.
- The code for the add-on library should be saved when the save button is pressed.
- The SDK version to be used for the current add-on can be changed from the plugins(libraries) section.
- The revision should change when the user adds/removes plugins(libraries)
- The total number of libraries added should be displayed in the libraries section
- When the user hits download without saving the code, the downloaded XPI should still contain the final edits of the user(i.e.it should check for a edit after the last save, and if true, should autosave it in the XPI)
- The user should be able to select the entire text present in the text editor.
- The user should be able to perform copy/paste functionality in the text editor.
- You should be able to edit the name of the Lib(module) by clicking on the pencil like button besides the name.
- The revision should also be updated when you edit the name of the lib(module)
- You should be able to edit the name of the Data(attachments) by clicking on the pencil like button besides the name.
- The revision should also be updated when you edit the name of the attachment
- Manual(in-litmus):
- The "Test" button should install the add-on into the browser without a restart. It should change state to "pressed" after the addon is installed
- Clicking on the pressed button again will uninstall the addon and the button will be released.
- Clicking on the "Download" button should generate an XPI file.
- The user should be able to add attachments ('Data' button on the page).
- Adding attachments should update the revision number of the current addon.
- If the user is in the "Edit" mode, the attachments should be editable in the text editor. The editable attachments are .js, .css and .txt) (new)
- If the user is in the "View" mode, the text attachments should *NOT* be editable.(new)
My account page
- Automated:
- The add-ons/libraries on this page should be tagged "initial"(default) for newly saved packages.
- It should be tagged "copy" for copied new packages.
- It should be tagged "uploaded" for packages that have been uploaded.
- The page should also show the count of the number of add-ons and libraries that you have created.(done)
- When clicking on the "Your Add-ons"/"Your Libraries" link, add-ons/libraries should be shown in a pagination manner if there are more than 10 add-ons for the user.
- In "Your Latest Add-ons" section, each add-on must have "Test", "Source", and "Disable" buttons.
- In "Your Latest Libraries" section, each library should have "Source"and "Disable" buttons.
- Clicking on disable button disables the addon/library.
- You can reactivate the disabled add-on by clicking the "Activate" button from the Disabled add-ons page.
- You can reactivate the disabled libraries by clicking the "Activate" button from the Disabled libraries page.
- Clicking on the "Disabled addons" link should show you the currently disabled addons.
- Clicking on the "Disabled libraries" link should show you the currently disabled libraries.
- You can upload an xpi file from your computer by clicking the "upload package" link on this page.
- Manual (in-litmus)
- The saved and enabled (default) Addons and libraries should be shown on this page.
Library editor page
- Automated:
- The library editor should have "Save", Copy", Revision" and "Properties" button when in "Edit" mode.
- The library editor should have "Copy", Revision" and "Properties" button when in "View" mode.
- The code for the library should be edited and should be saved when the save button is pressed.
- Lib(Modules) and plugins(libraries) should be allowed to be added to the current library.
- Library information should be editable when the "Properties" button is clicked.(Note: This can be done only when the user is in edit mode)
- The revision can be checked through the revision button. (done,combined with above test case)
- The libraries created by the user should be reflected in the libraries section when the user is writing the code for an add-on.
- The user should be able to edit the name of the lib(module) by clicking the pencil like edit button besides the name.
- The user should be able to delete lib(modules) and plugins(libraries).
- Manual:
- Attachments should be allowed to be added to the current library.
- Attachments should be editable(in the same manner as for add-ons).(new)