Skip to content

[Regression]: Internal error: step id not found #37147

@vitalets

Description

@vitalets

Last Good Version

1.54

First Bad Version

1.55

Steps to reproduce

  1. Create a fixture with box: true that calls test.attach():
import { test as base } from '@playwright/test';

const test = base.extend<{ myFixture: void }>({
    myFixture: [async ({}, use, testInfo) => {
        await testInfo.attach('my attachment', {
            body: 'foo',
            contentType: 'text/plain',
        });
        await use();
    }, { box: true }],
});

test('my test', ({ myFixture }) => {});
  1. Run tests npx playwright test

Reproduction repo: https://github.com/vitalets/playwright-issues/tree/error-step-id-not-found

Expected behavior

Attachment is added, no errors in the output.

Actual behavior

Attachment is added, but there is an error in the output Internal error: step id not found:

Running 1 test using 1 worker
Internal error: step id not found: test.attach@34
  1 passed (343ms)

Additional context

No response

Environment

System:
    OS: macOS 14.7.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 95.75 MB / 16.00 GB
  Binaries:
    Node: 20.18.3 - ~/.nvm/versions/node/v20.18.3/bin/node
    npm: 11.3.0 - ~/.nvm/versions/node/v20.18.3/bin/npm
    pnpm: 10.7.1 - ~/Library/pnpm/pnpm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: 1.55 => 1.55.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions