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

[tests-only][full-ci]add test for updating content of file #10838

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 0 additions & 23 deletions tests/acceptance/features/webUITextEditor/textFile.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,6 @@ Feature: create markdown files
Then as "Alice" file "simple_new.md" should exist in the server
And file "simple_new.md" should be listed on the webUI

@disablePreviews
Scenario: update a markdown file with new content
Given the user has opened file "simple.md" in the text editor webUI
When the user inputs the content "updated content" in the text editor webUI
And the user saves the file in the text editor webUI
And the user closes the text editor using the webUI
Then as "Alice" the file "simple.md" should have the content "updated content" in the server

@disablePreviews
Scenario: append new content in a markdown file
Given the user has opened file "simple.md" in the text editor webUI
When the user appends the content " new content added" in the text editor webUI
And the user saves the file in the text editor webUI
And the user closes the text editor using the webUI
Then as "Alice" the file "simple.md" should have the content "simple markdown file new content added" in the server

@disablePreviews
Scenario: close the text editor without saving the updated content
Given the user has opened file "simple.md" in the text editor webUI
When the user inputs the content "updated content" in the text editor webUI
And the user closes the text editor using the webUI
And as "Alice" the file "simple.md" should have the content "simple markdown file" in the server

@disablePreviews
Scenario: preview content of the file
When the user opens file "simple.md" in the text editor webUI
Expand Down
4 changes: 4 additions & 0 deletions tests/e2e/cucumber/features/shares/share.feature
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ Feature: share
| shareToBrian.md | mdFile | readme |
| shareToBrian.drawio | drawioFile | |
| sharedFile.txt | txtFile | some text |
And "Alice" edits the following resources
SagarGi marked this conversation as resolved.
Show resolved Hide resolved
| resource | content |
| shareToBrian.txt | new content edited |
| shareToBrian.md | new readme content edited |
And "Alice" uploads the following resource
| resource |
| testavatar.jpeg |
Expand Down