# Group

During test run or export Puppetry suites are turned into [Jest](https://jestjs.io) test file. Groups are converted into [describe blocks](https://blog.teamtreehouse.com/an-introduction-to-rspec). So we use them to define the context for the included test cases.

> Group defines the page context for all its test cases, meaning the first test case in a group has a fresh new context. We run commands and assertions within that context, so it gets affected. Yet the test cases in the next group receive a new clean context.

![Test group](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-Lu7jl8BoLNE0jl1KtZ4%2F-Lu8cNpkb3bEm72Rha8O%2Fscreenshot-1574266951.png?alt=media\&token=951e2d3f-73e6-4bd9-a3fe-1a54dc8d1b7e)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.puppetry.app/group.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
