Skip to content

Commit

Permalink
test(webui): fxi scenario steps
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan authored and nirajacharya2 committed Mar 14, 2024
1 parent 4f647ee commit d77928a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ Feature: encrypt files using master keys
So that I can use a common key to encrypt files of all user


Scenario: user cannot access their file after recreating master key with re-login
Scenario: user cannot access their file after recreating master key without re-login
Given user "Alice" has been created with default attributes and small skeleton files
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/lorem.txt"
And user "Alice" has logged in using the webUI
When the administrator successfully recreates the encryption masterkey using the occ command
Then the command output should contain the text 'Note: All users are required to relogin.'
When the user opens file "lorem.txt" expecting to fail using the webUI
Then the user should be redirected to the general exception webUI page with the title "%productname%"
And the title of the exception on general exception webUI page should be "Forbidden"
And a message should be displayed on the general exception webUI page containing "Encryption not ready"
Then dialog should be displayed on the webUI
| title | content |
| An error occurred! | Bad Signature |
And the user should be redirected to a webUI page with the title "Files - %productname%"


Scenario: user can access their file after recreating master key with re-login
Expand All @@ -24,5 +25,5 @@ Feature: encrypt files using master keys
When the administrator successfully recreates the encryption masterkey using the occ command
And the user re-logs in as "Alice" using the webUI
And the user opens file "lorem.txt" using the webUI
Then no dialog should be displayed on the webUI
Then dialog should be displayed on the webUI
And the user should be redirected to a webUI page with the title "Files - %productname%"

0 comments on commit d77928a

Please sign in to comment.