Skip to content

Commit

Permalink
Update acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Apr 6, 2022
1 parent c7db2f4 commit ddb7169
Showing 1 changed file with 26 additions and 26 deletions.
Expand Up @@ -12,68 +12,68 @@ Feature: create markdown files
@disablePreviews
Scenario: create a new markdown file in the root directory
When the user creates a markdown file with the name "simple_new.md" using the webUI
Then the file "simple_new.md" should be displayed in the markdown editor webUI
When the user closes the markdown editor using the webUI
Then the file "simple_new.md" should be displayed in the simple editor webUI
When the user closes the simple editor using the webUI
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 markdown editor webUI
When the user inputs the content "updated content" in the markdown editor webUI
And the user saves the file in the markdown editor webUI
And the user closes the markdown editor using the webUI
Given the user has opened file "simple.md" in the simple editor webUI
When the user inputs the content "updated content" in the simple editor webUI
And the user saves the file in the simple editor webUI
And the user closes the simple 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 markdown editor webUI
When the user appends the content " new content added" in the markdown editor webUI
And the user saves the file in the markdown editor webUI
And the user closes the markdown editor using the webUI
Given the user has opened file "simple.md" in the simple editor webUI
When the user appends the content " new content added" in the simple editor webUI
And the user saves the file in the simple editor webUI
And the user closes the simple 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 markdown editor without saving the updated content
Given the user has opened file "simple.md" in the markdown editor webUI
When the user inputs the content "updated content" in the markdown editor webUI
And the user closes the markdown editor using the webUI
Scenario: close the simple editor without saving the updated content
Given the user has opened file "simple.md" in the simple editor webUI
When the user inputs the content "updated content" in the simple editor webUI
And the user closes the simple 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 markdown editor webUI
Then the file "simple.md" should be displayed in the markdown editor webUI
When the user opens file "simple.md" in the simple editor webUI
Then the file "simple.md" should be displayed in the simple editor webUI
And the preview panel should have the content "simple markdown file" on the webUI

@disablePreviews
Scenario: preview content of the file while editing
Given the user has opened file "simple.md" in the markdown editor webUI
When the user inputs the content "updating the file with new content" in the markdown editor webUI
Given the user has opened file "simple.md" in the simple editor webUI
When the user inputs the content "updating the file with new content" in the simple editor webUI
Then the preview panel should have the content "updating the file with new content" on the webUI

@disablePreviews
Scenario: open text file in markdown editor
Scenario: open text file in simple editor
Given user "Alice" has uploaded file with content "test" to "lorem.txt" in the server
And the user has reloaded the current page of the webUI
When the user opens file "lorem.txt" in the markdown editor webUI
Then the file "lorem.txt" should be displayed in the markdown editor webUI
When the user opens file "lorem.txt" in the simple editor webUI
Then the file "lorem.txt" should be displayed in the simple editor webUI

@disablePreviews
Scenario Outline: preview of files with markdown editor by clicking the action menu option
Scenario Outline: preview of files with simple editor by clicking the action menu option
Given user "Alice" has uploaded file with content "test" to "lorem.txt" in the server
And the user has reloaded the current page of the webUI
When the user opens file "<file>" in the markdown editor using the action menu option on the webUI
Then the file "<file>" should be displayed in the markdown editor webUI
When the user opens file "<file>" in the simple editor using the action menu option on the webUI
Then the file "<file>" should be displayed in the simple editor webUI
Examples:
| file |
| simple.md |
| lorem.txt |

@disablePreviews
Scenario Outline: Previewing text writen in markdown format
Given the user has opened file "simple.md" in the markdown editor webUI
When the user inputs the content "<content>" in the markdown editor webUI
Given the user has opened file "simple.md" in the simple editor webUI
When the user inputs the content "<content>" in the simple editor webUI
Then the preview panel should have "<tagname>" element with text "<innertext>"
Examples:
| content | innertext | tagname |
Expand Down

0 comments on commit ddb7169

Please sign in to comment.