Skip to content

Commit

Permalink
fix ts for earlier pw versions (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Oct 15, 2024
1 parent 064e97b commit f0c58a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/playwright/runStepWithLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export async function runStepWithLocation(
) {
// PW 1.48 introduced official way to run step with location.
if (playwrightVersion >= '1.48.0') {
// @ts-expect-error earlier PW versions do not support 3rd argument in test.step
// Earlier PW versions do not support 3rd argument in test.step
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
return test.step(stepText, body, { location });
}

Expand Down

0 comments on commit f0c58a9

Please sign in to comment.