docs: ✏️ fix flag name and a11y references
This commit is contained in:
1 parent
7801429530
commit
84359d8e79
2 files changed
+10
-10
No files matched your search
@@ -102,7 +102,7 @@ These environment variables may be used to customized the build.
|
||||
| `BYPASS_APP_UPDATER` | Disable app updater feature. For development use only. |
|
||||
| `DISABLE_WINDOW_CHROME` | Disable window chrome. For internal use only. |
|
||||
| `ENABLE_MIRAGE` | Enable (`true`) or disable (`false`) mirage. Default value is `true`. |
|
||||
| `DARK_MODE` | Enable (`true`) to set the test browser appearance to dark for running tests in dark mode. |
|
||||
| `COLOR_THEME` | Define (`dark`) to set the test browser appearance to dark for running tests in dark mode. |
|
||||
|
||||
### Building for Production
|
||||
|
||||
@@ -140,7 +140,7 @@ These environment variables may be used to customized the build.
|
||||
### Running Tests
|
||||
|
||||
- `pnpm test` runs full tests in random order with coverage
|
||||
- `DARK_MODE=true ember test --server` runs tests in dark mode
|
||||
- `COLOR_THEME=dark ember test --server` runs tests in dark mode
|
||||
|
||||
Keep in mind that tests are executed in random order. This is intentional
|
||||
and helps to prevent hard-to-debug order dependencies among tests.
|
||||
@@ -154,9 +154,9 @@ Write acceptance tests like normal. Our a11y testing strategy will automatically
|
||||
run `a11yAudit()` after [specific helper actions](tests/test-helper.js#L26), like visit, click, and fillIn.
|
||||
Our a11y tests have their own pnpm commands:
|
||||
|
||||
* `pnpm test-ally` runs a11y tests for light and dark mode
|
||||
* `pnpm test-ally:light` runs a11y tests just for light mode
|
||||
* `pnpm test-ally:dark` runs a11y tests just for dark mode
|
||||
* `pnpm test-a11y` runs a11y tests for light and dark mode
|
||||
* `pnpm test-a11y:light` runs a11y tests just for light mode
|
||||
* `pnpm test-a11y:dark` runs a11y tests just for dark mode
|
||||
|
||||
#### Light vs Dark Mode A11y Tests
|
||||
|
||||
|
||||
Reference in new issue
Block a user