-
Notifications
You must be signed in to change notification settings - Fork 92
Document manual UI testing best practices #5357
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
Open
joemull
wants to merge
2
commits into
master
Choose a base branch
from
b-docs-manual-ui-testing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Manual user interface testing | ||
|
|
||
| This guide offers tips for testing the Janeway user interface manually during development. | ||
|
|
||
| ## Using multiple accounts and roles | ||
|
|
||
| When testing a user interface manually, you often need to be logged in with several different accounts that have different roles. | ||
|
|
||
| You can use Firefox container tabs to switch quickly between roles. | ||
|
|
||
| ## Testing on multiple devices at home | ||
|
|
||
| When you are on secure local network, you can run the Janeway local server in such a way that you can test it on other devices in addition to your development machine. | ||
|
|
||
|
joemull marked this conversation as resolved.
|
||
| ### Linux | ||
|
|
||
| 1. Run your development server with an additional argument to specify an IP of four zeroes, and the same port as normal: `python src/manage.py runserver 0.0.0.0:8000`. | ||
|
|
||
| 2. Find out the IP address of your development machine on your local network. This can be done with the `ip` utility by running `ip r`. An example: `192.168.68.121`. | ||
|
|
||
| 3. Create a Domain Alias record in the Janeway admin interface (go to `localhost:8000/admin/core/domainalias`). | ||
|
|
||
| - Enter the IP address from the previous step in the **Domain** field. An example: `192.168.68.121`. | ||
| - Leave the **Is secure** field unticked. | ||
| - Untick the **301** field, since you do not want Janeway to redirect devices that access this IP. | ||
| - Select the journal or press site that you want to access. | ||
| - Save the domain alias. | ||
|
|
||
| 4. Visit this IP and port on your other device(s). For example, go to `192.168.68.121:8000`. | ||
|
|
||
| ## Switching between themes | ||
|
|
||
| On a development installation, you can quickly switch to a different front-office theme by adding a query parameter. | ||
|
|
||
| For example, adding `?theme=material` to the URL will load the page in the Material theme. | ||
|
|
||
| Caveats: | ||
|
|
||
| - This only works when `DEBUG` is turned on. | ||
| - The Hourglass press theme (used by the Open Library of Humanities) does not support this feature. | ||
|
joemull marked this conversation as resolved.
|
||
| - It does not work when using accessibility mode | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.