Skip to content

Commit b0b6584

Browse files
committed
docs(tests): fix Test-page navigation now that Test moved off the sidebar
1 parent 34c6704 commit b0b6584

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

docs/guides/examples/sentry-error-tracking.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ After creating the task, deploy your project.
169169

170170
</CodeGroup>
171171

172-
Once deployed, navigate to the `test` page in the sidebar of your [Trigger.dev dashboard](https://cloud.trigger.dev), click on your `prod` environment, and select the `sentryErrorTest` task.
172+
Once deployed, open the `sentryErrorTest` task in your [Trigger.dev dashboard](https://cloud.trigger.dev) (make sure you're in your `prod` environment) and press the "Test" button to open the test page for it.
173173

174174
Run a test task with an empty payload by clicking the `Run test` button.
175175

docs/images/test-dashboard.png

93.8 KB
Loading

docs/run-tests.mdx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ title: "Run tests"
33
description: "You can use the dashboard to run a test of your tasks."
44
---
55

6-
From the "Test" page in the side menu of the dashboard you can run a test for any of your tasks from any environment.
6+
You can run a test for any of your tasks, in any environment, from the dashboard.
77

8-
![Select an environment](/images/test-dashboard.png)
8+
<Note>
9+
There is no longer a "Test" page in the sidebar. You test a task from the task itself: on the
10+
Tasks page open a task (or use the "Test" action next to a task in the Runs list) and press the
11+
"Test" button to open its test page.
12+
</Note>
913

10-
<Icon icon="circle-1" iconType="solid" color="#FF2D6B" size="20" /> Select a task to test
14+
On a task's test page you can:
1115

12-
<Icon icon="circle-2" iconType="solid" color="#FF2D6B" size="20" /> Include a payload or metadata
16+
- Enter the run's input — a JSON **payload** and optional **metadata**. Scheduled tasks show timestamp fields instead of a payload.
17+
- Configure run **options** like the machine size, version, queue, tags, retries, max duration, or a delay.
18+
- Pre-populate the form from a previous run with **Recent runs**, or save and reuse a configuration with **Templates**.
19+
- Press **Run test** to trigger the run.
1320

14-
<Icon icon="circle-3" iconType="solid" color="#FF2D6B" size="20" /> Configure any additional options like the machine size, queue or delay
15-
16-
<Icon icon="circle-4" iconType="solid" color="#FF2D6B" size="20" /> Select from previous test runs
17-
18-
<Icon icon="circle-5" iconType="solid" color="#FF2D6B" size="20" /> Save the current test configuration as a template for later
19-
20-
<Icon icon="circle-6" iconType="solid" color="#FF2D6B" size="20" /> Run the test
21+
![Test page](/images/test-dashboard.png)

docs/snippets/step-run-test.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<Step title="Perform a test run using the dashboard">
22

3-
The CLI `dev` command spits out various useful URLs. Right now we want to visit the Test page.
3+
The CLI `dev` command spits out various useful URLs, including a link to the dashboard. Open it, find your Example task on the Tasks page, and press the "Test" button to open its test page.
44

5-
You should see our Example task in the list <Icon icon="circle-1" iconType="solid" size={20} color="F43F47" />, select it. Most tasks have a "payload" which you enter in the JSON editor <Icon icon="circle-2" iconType="solid" size={20} color="F43F47" />, but our example task doesn't need any input.
5+
Most tasks have a "payload" which you enter in the JSON editor, but our example task doesn't need any input. You can also configure run options, pre-populate the form from recent runs, and save run templates.
66

7-
You can configure options on the run <Icon icon="circle-3" iconType="solid" size={20} color="F43F47" />, view recent payloads <Icon icon="circle-4" iconType="solid" size={20} color="F43F47" />, and create run templates <Icon icon="circle-5" iconType="solid" size={20} color="F43F47" />.
8-
9-
Press the "Run test" button <Icon icon="circle-6" iconType="solid" size={20} color="F43F47" />.
7+
Press the "Run test" button.
108

119
![Test page](/images/test-dashboard.png)
1210

0 commit comments

Comments
 (0)