Group

During test run or export Puppetry suites are turned into Jest test file. Groups are converted into describe blocks. 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

‚Äč