Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] 2.5.0 Testplan #384

Closed
jnweiger opened this issue Jan 26, 2023 · 2 comments
Closed

[QA] 2.5.0 Testplan #384

jnweiger opened this issue Jan 26, 2023 · 2 comments

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Jan 26, 2023

Files Text Editor

Server: v10

Setup

  1. Install and enable the files_texteditor app.
  2. Create a "regularuser" and login to that.
  3. When entering or editing text in the file, use a range of different/special characters and multiple lines.
  4. When checking file contents after editing, first close the editor window then click the file again to open the editor window.

Note: most tests are covered by the automated UI test suite.
The individual test cases here cover basic functionality, and illustrate the range covered by the automated UI test suite.
Manually performing all the individual test cases can be done, and will give basic confidence in the text editor behavior,
however it is not necessary to manually perform test cases already covered automatically.

Test Case Steps Expected result Result Related Comment
UI test suite Run the automated UI test suite All tests pass ✔️
Create a text file Use "+", "Text file", enter a file name, then enter some text in the file and close the editor window. File is listed in folder and contains the entered text ✔️
Create a text file with the default name Use "+", "Text file", press enter, then enter some text in the file and close the editor window. "New text file.txt" is listed in folder and contains the entered text ✔️
Create a text file with an unusual name Use "+", "Text file", enter a file name containing Unicode characters, special symbols etc, then enter some text in the file and close the editor window. File is listed in folder and contains the entered text ✔️
Create a text file using a name that already exists Use "+", "Text file", enter a name of a file that already exists. A tooltip is shown 'file.txt already exists' ✔️
Create a text file with name containing "/" Use "+", "Text file", enter a name including a "/". A tooltip is shown 'File name cannot contain "/"' ✔️
Create a text file ".." Use "+", "Text file", enter name just "..". A tooltip is shown '".." is an invalid name' ✔️
Create a text file "." Use "+", "Text file", enter name just ".". A tooltip is shown '"." is an invalid name' ✔️
Create a text file ".part" Use "+", "Text file", enter a name ending in ".part". A tooltip is shown '"filename.part" has a forbidden file type/extension' ✔️
Edit an existing file Choose an existing text file and open it. Edit the text. Close the editor window. The changed text is saved in the file. ✔️
Perform the above tests in a sub-folder Create a folder and navigate into it. Create and edit text files in the subfolder, like in the steps above. Same results as above. ✔️
Cannot create a text file when app disabled As an admin, disable the files_texteditor app. As a regular user, go to the files page and click the "+". An entry for "Text file" does not appear. ✔️:
Cannot edit a text file when app disabled As an admin, disable the files_texteditor app, . As a regular user, go to the files page and click on an existing text file. No text editor window appears. You are prompted to download the file. ✔️
Autosave Edit a few lines, wait 2 seconds A '*' appears while editing. The word 'saved' appears, when waiting for a few seconds. ✔️
Public Link Create a public share on a text file with edit permission Text editor works for anonymous users through the public link -> #386
Shared Editing Two users edit the same file on a shared folder second users sees a lock icon and can only open the file in readonly. ✔️

@jnweiger jnweiger changed the title [QA] 2.4.2 Testplan [QA] 2.5.0 Testplan Mar 3, 2023
@jnweiger
Copy link
Contributor Author

jnweiger commented Mar 3, 2023

Changelog Testing

  • implement persistent locking #382
    • manual locking of a file in a shared folder prevents other user from editing with texteditor.
    • Manual locking prevents the lock owner also from editing with the texteditor. OKAYISH.
    • Editing with text editor also creates the lock and prevents other users from editing.
    • Editing with text editor blocks client uploads temporarily. A conflict occurs on the client after the texteditor is closed.
    • closing the browser tab with an open texteditor does not remove the lock. OKAYISH.
    • the same user can now continue with the textedtor in a fresh browser session (and the file is locked). COOL.

@jnweiger
Copy link
Contributor Author

jnweiger commented Mar 9, 2023

QA passed with a minor non-regression issue. (probably wrong expectation).
Ready to release.

@jnweiger jnweiger closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant