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

[full-ci] [tests-only] Refactored inter scenarios space #378

Merged
merged 1 commit into from
Nov 9, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature: log activity of actions done by the texteditor app
And user "Alice" has logged in using the webUI
And the user has browsed to the files page


Scenario: creating a new text file should be listed in the activity list
Given the user has created a text file with the name "activityfile.txt"
And the user has input "stuff" in the text area
Expand All @@ -17,6 +18,7 @@ Feature: log activity of actions done by the texteditor app
Then the activity number 1 should contain message "You changed activityfile.txt" in the activity page
And the activity number 2 should contain message "You created activityfile.txt" in the activity page


Scenario: editing an existing text file should be listed in the activity list
Given the user has opened file "lorem.txt" using the webUI
And the user has input "changed text" in the text area
Expand Down
12 changes: 12 additions & 0 deletions tests/acceptance/features/webUITextEditor/createTextFiles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature: textFiles
And user "Alice" has logged in using the webUI
And the user has browsed to the files page


Scenario Outline: Create a text file
When the user creates a text file with the name <file_name> using the webUI
And the user inputs <example_text> in the text area
Expand All @@ -25,6 +26,7 @@ Feature: textFiles
| '"somequotes1" text.txt' | 'John said,"hello."' |
| "'somequotes2' text.txt" | 'special !@#$%^&*()[]{}\|-_+=\/?' |


Scenario: Create a text file with the default name and file extension
When the user creates a text file with the name "" using the webUI
And the user inputs "stuff" in the text area
Expand All @@ -33,13 +35,15 @@ Feature: textFiles
And the user reloads the current page of the webUI
Then file "New text file.txt" should be listed on the webUI


Scenario: Create a text file with the default file extension and do not close the editor
When the user creates a text file with the name "abc" using the webUI without changing the default file extension
And the user inputs "something" in the text area
Then file "abc.txt" should be listed on the webUI
And the user reloads the current page of the webUI
Then file "abc.txt" should be listed on the webUI


Scenario: Create a text file with the default file extension and unicode file name
When the user creates a text file with the name "सिमप्ले text file" using the webUI without changing the default file extension
And the user inputs "नेपाल" in the text area
Expand All @@ -51,6 +55,7 @@ Feature: textFiles
Then there should be 1 line of text in the text area
And line 1 of the text should be "नेपाल"


Scenario: Create a text file with multiple lines of text in it
When the user creates a text file with the name "atextfile.txt" using the webUI
And the user inputs the following text in the text area:
Expand All @@ -75,6 +80,7 @@ Feature: textFiles
And line 5 of the text should be "नेपाल"
And line 6 of the text should be "1 2 3 4 5 6 7 8 9 0"


Scenario: Create a text file with the default name and file extension in a sub-folder
When the user creates a folder with the name "simple-folder" using the webUI
And the user opens folder "simple-folder" using the webUI
Expand All @@ -87,6 +93,7 @@ Feature: textFiles
And the user opens file "New text file.txt" using the webUI
Then line 1 of the text should be "stuff"


Scenario: Create a text file in a sub-folder using special characters in the names
When the user creates a folder with the name "सिमप्ले फोल्देर $%#?&@" using the webUI
And the user opens folder "सिमप्ले फोल्देर $%#?&@" using the webUI
Expand All @@ -97,22 +104,27 @@ Feature: textFiles
And the user reloads the current page of the webUI
Then file "सिमप्ले $%#?&@ name.txt" should be listed on the webUI


Scenario: Create a text file putting a name of a file which already exists
When the user creates a text file with the name "lorem.txt" using the webUI
Then near the new text file box a tooltip with the text 'lorem.txt already exists' should be displayed on the webUI


Scenario: Create a text file named with forward slash
When the user creates a text file with the name "simple-folder/a.txt" using the webUI
Then near the new text file box a tooltip with the text 'File name cannot contain "/".' should be displayed on the webUI


Scenario: Create a text file named ..
When the user creates a text file with the name ".." using the webUI
Then near the new text file box a tooltip with the text '".." is an invalid file name.' should be displayed on the webUI


Scenario: Create a text file named .
When the user creates a text file with the name "." using the webUI
Then near the new text file box a tooltip with the text '"." is an invalid file name.' should be displayed on the webUI


Scenario: Create a text file with file extension .part
When the user creates a text file with the name "data.part" using the webUI
Then near the new text file box a tooltip with the text '"data.part" has a forbidden file type/extension.' should be displayed on the webUI
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Feature: textFiles
And user "Alice" has logged in using the webUI
And the user has browsed to the files page


Scenario: Edit a text file with the default name and file extension in a sub-folder
When the user creates a folder with the name "simple-folder" using the webUI
And the user opens folder "simple-folder" using the webUI
Expand Down