## TL;DR

For "Can't call test.use() inside a describe() suite of a different test type. Make sure to use the same "test" function (created by the test.ext": make sure to use the same "test" function (created by the test.extend() call) for all declarations inside a suite.playwright `` To reproduce, just have describe blocks with extend/use inside of them. This was an intentional change (documented as a breaking change after the report).

```text
Can't call test.use() inside a describe() suite of a different test type. Make sure to use the same "test" function (created by the test.extend() call) for all declarations inside a suite.playwright
```

## Steps

1. Playwright 1.42 turned mixing test instances into an error: 'Can't call test.use() inside a describe() suite of a different test type'. This was an intentional change (documented as a breaking change after the report). Fix: use the same test function created by your test.extend() call for everything inside a suite, instead of nesting different test instances in one describe block.

## When to use

You are seeing this: Issue microsoft/playwright#29734 (closed, 58 comments): ### Last Good Version 1.41.2 ### First Bad Version 1.42.0 ### Steps to reproduce After updating to playwright 1.42, I get this message about one of my test files which was fine in 1.41.2: `` Can't... Use this skill when you run into "[Regression]: Can't call test.use() inside a describe() suite of a different test".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

Versions mentioned in the source: 1.41.2, 1.42.0. If you are on something much newer or older, the details may have shifted.

## Variants

Other phrasings of the same problem that show up in reports:

### `` Can't call test.use() inside a describe() suite of a different test type. Make sure to use the same "test" function (

```text
``` Can't call test.use() inside a describe() suite of a different test type. Make sure to use the same "test" function (created by the test.extend() call) for all declarations inside a suite.playwright ```
```

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/microsoft/playwright/issues/29734
