From 762fe8d6c07ab100047e9269a079abefc3e46259 Mon Sep 17 00:00:00 2001 From: pradip Date: Fri, 26 Apr 2024 11:42:54 +0545 Subject: [PATCH 1/2] test: add test for updating content of file --- tests/e2e/cucumber/features/shares/share.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/cucumber/features/shares/share.feature b/tests/e2e/cucumber/features/shares/share.feature index 835b4582ca5..f4546ae8053 100644 --- a/tests/e2e/cucumber/features/shares/share.feature +++ b/tests/e2e/cucumber/features/shares/share.feature @@ -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 | | testavatar.jpeg | From c8a10e341fb1088286e0fb7059b7e7ba57a13aa4 Mon Sep 17 00:00:00 2001 From: pradip Date: Fri, 26 Apr 2024 12:56:53 +0545 Subject: [PATCH 2/2] refactor: remove acceptance tests scenarios for updating content of file --- .../features/webUITextEditor/textFile.feature | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/tests/acceptance/features/webUITextEditor/textFile.feature b/tests/acceptance/features/webUITextEditor/textFile.feature index c4dc37ebeda..e5e17ff9bd8 100644 --- a/tests/acceptance/features/webUITextEditor/textFile.feature +++ b/tests/acceptance/features/webUITextEditor/textFile.feature @@ -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