Skip to content

Commit

Permalink
[tests-only][full-ci]add test for updating content of file (owncloud#…
Browse files Browse the repository at this point in the history
…10838)

* test: add test for updating content of file

* refactor: remove acceptance tests scenarios for updating content of file
  • Loading branch information
anon-pradip committed Apr 29, 2024
1 parent e3acabc commit 52dab8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
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
| resource | content |
| shareToBrian.txt | new content edited |
| shareToBrian.md | new readme content edited |
And "Alice" uploads the following resource
| resource |
| simple.pdf |
Expand Down

0 comments on commit 52dab8c

Please sign in to comment.