Skip to content

[Question] How to ignore first argument in test() #8798

@Nhasa

Description

@Nhasa

I'm using @playwright/test v1.14.1.
I followed the instruction in this page https://playwright.dev/docs/test-parallel/#reusing-single-page-between-tests.
All seems fine, until I try to ignore first parameter in the test() by using _ as I normally doing in typescript.
When I try to run the test I got this error: Error: First argument must use the object destructuring pattern: _

test.describe.serial('test case 1', () => {
  test('test step 1', async (_, testInfo) => {
    // Error: First argument must use the object destructuring pattern: _
  })
})

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions