fix(docs): missing tags from code that are referenced in docs (#10400)

<!-- Clearly explain the need for these changes: -->
The docs have an issue with not building due to changes made in the
process of updating the e2e testing to remove the monitor page.

### Changes 🏗️

<!-- Concisely describe all of the changes made in this pull request:
-->
fixes the missing start and end tags that prevent docs from building. 

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - [x] run the build and check for no errors indicating missing tags
  - [x] deploy to netlify
This commit is contained in:
Nicholas Tindle
2025-07-17 20:15:35 -05:00
committed by GitHub
parent e50366726c
commit c451337cb5
2 changed files with 5 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ test.describe.configure({
mode: "parallel",
timeout: 30000,
});
// --8<-- [start:AttachAgentId]
test.beforeEach(async ({ page }, testInfo: TestInfo) => {
const loginPage = new LoginPage(page);
const testUser = await getTestUser();
@@ -45,6 +45,7 @@ test.beforeEach(async ({ page }, testInfo: TestInfo) => {
const id = uuidv4();
testInfo.attach("agent-id", { body: id });
});
// --8<-- [end:AttachAgentId]
test.afterAll(async () => {
// clear out the downloads folder
@@ -63,11 +64,13 @@ test.skip("user can export and import agents", async ({
const monitorPage = new MonitorPage(page);
const buildPage = new BuildPage(page);
// --8<-- [start:ReadAgentId]
if (testInfo.attachments.length === 0 || !testInfo.attachments[0].body) {
throw new Error("No agent id attached to the test");
}
const testAttachName = testInfo.attachments[0].body.toString();
// --8<-- [end:ReadAgentId]
const agents = await monitorPage.listAgents();
const downloadPromise = page.waitForEvent("download");

View File

@@ -160,6 +160,7 @@ You can pass information between tests using the `testInfo` object. This is usef
});
```
## See Also
- [Writing Tests](https://playwright.dev/docs/writing-tests)