From 74b945d41249ec62a15f21863232c654b34368c9 Mon Sep 17 00:00:00 2001 From: Hassy Veldstra Date: Wed, 18 Dec 2024 13:44:16 +0000 Subject: [PATCH] fix: make $rewriteMetricName work with TypeScript scripts (#3439) --- packages/artillery-engine-playwright/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/artillery-engine-playwright/index.js b/packages/artillery-engine-playwright/index.js index 39d8242427..3f6af9ef43 100644 --- a/packages/artillery-engine-playwright/index.js +++ b/packages/artillery-engine-playwright/index.js @@ -8,6 +8,11 @@ class PlaywrightEngine { this.config = script.config?.engines?.playwright || {}; this.processor = script.config.processor || {}; + + if (script.$rewriteMetricName) { + this.processor.$rewriteMetricName = script.$rewriteMetricName; + } + this.launchOptions = this.config.launchOptions || {}; this.contextOptions = this.config.contextOptions || {};