-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixture "task" is not available anymore #4418
Comments
Did you try the latest beta? Works fine for me including types It's possible it's not released yet 🤔 |
Do you mean |
Seems like types are actually fixed! Eventually, I found a bug in a latest commit so far as well. Add this to a beforeEach(async ({ task }) => {
console.log('task id', task.id);
}); Expected to have logged task id, got type error:
|
The error seems to occur when the test is extended with fixtures but the fixtures are unused in the test. This PR should fix it: #4419 |
Describe the bug
According to test extension guide, we can create a test fixture like this:
Unfortunately, this doesn't work since
v0.34.5
, probably because something happened here.In a version before this change context passed to the function included
task
(and other default fixtures), currently it included only user-added fixtures.Also, at
v1.0.0-beta.0
the types changed to mirror the change which is incorrect as well.Reproduction
Expected: running
logTaskId
in a test will log task idActual: failed with error in the console
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: