-
Notifications
You must be signed in to change notification settings - Fork 45
SDW Test Senario: Occasionally Connected User
deeplow edited this page Jul 16, 2024
·
4 revisions
Prerequisites:
- server is available and contains source test data
- test data includes at least one previously downloaded submission
- test data includes at least one undownloaded submission
~/.securedrop_client/data
insd-app
is empty, and~/.securedrop_client/svs.sqlite
does not exist (do not delete the entire~/.securedrop_client
directory)
- When SecureDrop desktop icon is double-clicked, preflight updater is displayed
- After preflight updater runs, when user clicks Continue, login dialog is displayed
- When user clicks Work Offline, login dialog closes and main window opens
- after startup:
- there is no sync attempt with the server
- the source list is empty
- When the user clicks the top-left user icon and chooses Sign in:
- the login dialog is displayed over the main window
- When the user enters valid login details and clicks Log in:
- the login dialog closes
- The user icon is updated to reflect the user's details
- the client is synced with the server and the source list is updated
- When the user selects a source with submissions from the source list:
- the conversation view is populated with the source conversation
- the reply panel is active
- a reply can be sent to the source
- a submission can be downloaded
- a downloaded submission can be exported
- When the user clicks the main window close button:
- the client exits.
Prerequisites:
- server is available and contains source test data
- test data includes at least one previously downloaded submission
- test data includes at least one undownloaded submission
- client data directory has been synced with server in a previous login
- the
sd-devices
VM is not running (shut down manually if necessary)- a supported printer is available, but not attached.
- When SecureDrop desktop icon is double-clicked, preflight updater is displayed
- After preflight updater runs, when user clicks Continue, login dialog is displayed
- When user clicks Work Offline, login dialog closes and main window opens
- after startup:
- there is no sync attempt with the server
- the source list is populated with contents of last server sync
- When the user selects a source with submissions from the source list:
- the conversation view is populated with the source conversation
- the reply panel is inactive, with a "Sign in" message
- a previously downloaded submission can be exported
- a previously downloaded submission can be printed
- When the user clicks Download on an undownloaded submission, a message is displayed instructing the user to sign in to perform the download
- When the user clicks the top-left user icon and chooses Sign in:
- the login dialog is displayed over the main window
- When the user enters valid login details and clicks Log in:
- the login dialog closes
- The user icon is updated to reflect the user's details
- source data is synced with the server
- When the user selects a source with submissions from the source list:
- the conversation view is populated with the source conversation
- the reply panel is active
- When the user replies to a source, the reply is added to the source conversation
- When the user clicks Download on an undownloaded submission, the submission is downloaded and decrypted
- When the user clicks Export on a submission, the export process can be completed
- When the user clicks Print on a submission, the print process can be completed
- When the user clicks the main window close button:
- the client exits.
Note: this scenario requires access to the Journalist Interface (JI) via Tor Browser. If the scenario is being tested on Qubes, the JI address can be found in
sd-whonix
in/usr/local/etc/torrc.d/50_user.conf
. See https://github.com/freedomofpress/securedrop-workstation/wiki/Developer-Tips#how-to-connect-to-the-journalist-interface-in-qubes for instructions on how to connect to the JI in a VM.
Prerequisites:
- server is available and contains source test data
- client data directory is empty
- when SecureDrop desktop icon is double-clicked, preflight updater is displayed
- After preflight updater runs, when user clicks Continue, login dialog is displayed
- after valid login to client:
- the login dialog closes
- source data is downloaded and source list is populated
- user is prompted for GPG key access
- submissions and replies are decrypted
- the source list is displayed but no sources are selected by default
- the conversation view is not populated
- when the JI address is visited in Tor Browser:
- JI login page is displayed
- after valid login to JI using same account as for client:
- sources page is displayed, containing the same sources as the client (order may differ)
- when a source is starred in the client:
- the source is also starred in the JI after a page reload
- when a starred source is unstarred in the JI:
- the source is also unstarred in the client after next sync.
- when a reply is sent to a source via the client:
- the reply is visible in the JI and can be viewed by the source in the Source Interface
- when a reply is sent to a source via the JI:
- the reply is visible in the source conversation view after next sync
- when the journalist account used to reply is deleted by an admin in the JI:
- the next sync is successful
- the reply is visible in the conversation view
- the journalist's details are deleted from the client database
- when a reply is deleted by a source:
- the reply still appears in the client, with no "read/deleted by source" indicator (until https://github.com/freedomofpress/securedrop-client/issues/889 is resolved)
- when an individual file submission is deleted in the JI:
- the submission is no longer listed in the conversation view
- the submission files are deleted from the client data directory
- when an individual message is deleted in the JI:
- the message is no longer listed in the conversation view
- the messages are deleted from the client database
- when a source is deleted in the JI:
- the source is no longer listed in the client after next sync
- files associated with the source are no longer present in the client data directory
- when a source is deleted in the client:
- the source is no longer listed in the JI after a page reload