- Reload editor with a pure link https://editor.jsight.io.
- Enter some good JSight code. Check, that documentation is properly rendered.
- Click on the Share button.
- Check the link in the popup window and in the browser address line.
- Copy the link and close the window.
- Check, that now the Share button is disabled.
- Move to the case below.
- Open the existing link in an other browser. Check that the code was properly saved.
- Check that the Share button is disabled.
- Change the JSight code. Check that the Share button is enabled.
- Click on
Share
→Update API
. - Check the new link (in the popup window and in the browser address line): the version number must be incremented. Copy the link and close the window.
- Check, that now the Share button is disabled.
- Move to the case below.
- Open the existing link in an other browser. Check that the code was properly saved.
- Check that the Share button is disabled.
- Change the JSight code. Check that the Share button is enabled.
- Click on Share → Save API.
- Check the new link (in the popup window and in the browser address line): the key must be new,
the version number must be
1
. Copy the link and close the window. - Check, that now the Share button is disabled.
- Open the new link in an other browser. Check that the new code was properly saved.
- Create a share link — link #1.
- Update this link — get link #2.
- Remove from the last link version number. Open this link without version number.
- Check, that editor shows an API, that was saved under the link #2.
- Repeat all the basic share test cases, but before pressing the Share button, click on some item in Contents tab.
- Open some shared link. Click on some item in the Contents tab. Copy the link in the browser
address line (with the item path after the
#
symbol). Try to open this big link in another browser. - Make the previous test, but corrupt item path after the
#
symbol. Browser should open this link without errors.
-
Bad code. Repeat all the basic share test cases, but use a bad JSight code, with an error inside. Share functionality must work and show a code error any time.
-
No version. Repeat 2nd and 3rd basic test cases, but use a share link without version number.
-
Reset example. Repeat all the basic share test cases, but check if you can reset an example just before sharing a link, and immediately after sharing a link, and immediately after opening a link in a new browser.
-
NOT IMPLEMENTED. Close window. Repeat all the basic share test cases, but try to close the browser window every time after changing a saved JSight code. Browser must show a warning, that the code was not saved.
-
NOT IMPLEMENTED. Previous button. Repeat all the basic share test cases, but try to press the "Previous" browser button every time after changing a saved JSight code. Browser must show a warning, that the code was not saved.
-
Change code. Repeat all the basic share test cases, but set in the editor another code any time before opening a new shared link. For example, use this code:
JSIGHT 0.3 GET /
-
Huge code. Repeat all the basic share test cases, but using the huge JSight code (you can get huge projects in the
./load-tests/
folder). -
Preview mode. Repeat all the basic share test cases, but after updating a code, switch to the Preview mode, then come back to the Editor mode. Check, that your code updates have not been changed.
-
The same window. Repeat all the basic share test cases, but do not change the browser and do all steps in the same browser window without refresh.
-
Update not last version. Get link with several versions (e.g. 3). Try to reproduce basic share test cases 2 and 3, but each time use not last version of the link (e.g. 1).
- Good key, bad version. Open a link with a good key, but a corrupted version number. The 404 page must be opened.
- Bad key, good version. Open a link with a good version number, but a corrupted key. The 404 page must be opened.
- Bad key, no version. Open a link with a bad key, and without a version number. The 404 page must be opened.
- No connection. Turn off the connection. Click on the Share button.
- The popup window with the link must not be shown.
- In several seconds an error message must emerge.
- Check the copy button on the right side of the link.
- Check the closing cross mark at the top right corner.
- Check the "Close" button. Check, that the link is not saved in the clipboard.
- Check the "Copy & Close" button. Check, that link is saved in the clipboard.
- Check copying a link using Ctrl+C.